Re: hi let me know the solution to this question

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: hi let me know the solution to this question
Дата
Msg-id 44BD1002.6070505@presinet.com
обсуждение исходный текст
Ответ на Re: hi let me know the solution to this question  ("Aaron Bono" <postgresql@aranya.com>)
Ответы Re: hi let me know the solution to this question  ("Aaron Bono" <postgresql@aranya.com>)
Список pgsql-sql
Aaron Bono wrote:
> On 7/18/06, *Michael Fuhr* <mike@fuhr.org <mailto:mike@fuhr.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?


В списке pgsql-sql по дате отправления:

Предыдущее
От: "Andrew Hammond"
Дата:
Сообщение: using constraint based paritioning to fix EAV type schemas? (view inheritance and constraints)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to pass array of values to a stored procedure