Re: Equivalent to sql%rowcount or @@rowcount

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Equivalent to sql%rowcount or @@rowcount
Дата
Msg-id 200307250905.21817.dev@archonet.com
обсуждение исходный текст
Ответ на Equivalent to sql%rowcount or @@rowcount  ("vijaykumar M" <m_vijaykumar@hotmail.com>)
Список pgsql-sql
On Friday 25 July 2003 07:04, vijaykumar M wrote:
> Hi All! 
> is it possible to get in sql number of rows affected by the sql last insert, 
>
> update or delete statement?? 
>
> for eg, 
>
> oracle ------------- sql%rowcount.
> sqlserver ------------ select @@rowcount.

You can do this sort of thing inside a plpgsql function - see ch 19.5.5 
"Obtaining result status" in the programmers manual.

GET DIAGNOSTICS my_var = ROW_COUNT;

Oh -  and _please_ don't post html-only messages to the list.

--  Richard Huxton Archonet Ltd


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

Предыдущее
От: "vijaykumar M"
Дата:
Сообщение: Equivalent to sql%rowcount or @@rowcount
Следующее
От:
Дата:
Сообщение: [OT] Frontend recommendations