From: | "Aaron Bono" <postgresql(at)aranya(dot)com> |
---|---|
To: | "Bricklen Anderson" <banderson(at)presinet(dot)com> |
Cc: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: hi let me know the solution to this question |
Date: | 2006-07-18 18:35:31 |
Message-ID: | bf05e51c0607181135r38fc3446i8370db37bca02bb3@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On 7/18/06, Bricklen Anderson <banderson(at)presinet(dot)com> wrote:
>
> Aaron Bono wrote:
> > On 7/18/06, *Michael Fuhr* <mike(at)fuhr(dot)org <mailto:mike(at)fuhr(dot)org>> wrote:
> <snip>
> >
> http://www.postgresql.org/docs/8.1/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS
> <snip>
> >
> > OK, this question got me wondering: is there a way to determine, in a
> > function/stored procedure, the number of rows that were
> > inserted/updated/deleted?
> <snip>
> > I could not find any documentation about getting the count of updates
> > but when you run the update by itself, PostgreSQL reports the number of
> > records updated so I have to believe the information is available
> > somewhere.
> >
> > Thanks,
> > Aaron
> >
> Look for the section entitled "36.6.6. Obtaining the Result Status" on
> the link that Michael Fuhr supplied (above). Is that what you are
> looking for?
>
Ah yes, I missed the part on ROW_COUNT . That should do it.
==================================================================
Aaron Bono
Aranya Software Technologies, Inc.
http://www.aranya.com
==================================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Curtis Scheer | 2006-07-18 18:37:35 | Re: How to pass array of values to a stored procedure |
Previous Message | Emi Lu | 2006-07-18 18:17:36 | Re: Like with special character |