Re: Getting number of affected row after performing update

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Getting number of affected row after performing update
Дата
Msg-id 4B7E4EDE.5060502@archonet.com
обсуждение исходный текст
Ответ на Getting number of affected row after performing update  (Yan Cheng Cheok <yccheok@yahoo.com>)
Ответы Getting number of affected rows after DELETE FROM  (Raimon Fernandez <coder@montx.com>)
Список pgsql-general
On 19/02/10 05:42, Yan Cheng Cheok wrote:
>
> Of course, I get an error at line :
> IF @@ROWCOUNT=0 THEN
>
> May I know what is the correct PostgreSQL syntax for @@ROWCOUNT after update?

Best place for this sort of information is the manuals:

http://www.postgresql.org/docs/8.4/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS

GET DIAGNOSTICS my_variable = ROWCOUNT;

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: Not able to access schema functions and table...
Следующее
От: Jignesh Shah
Дата:
Сообщение: How to get the users name from users group?