Re: Getting number of affected row after performing update - Mailing list pgsql-general

From Richard Huxton
Subject Re: Getting number of affected row after performing update
Date
Msg-id 4B7E4EDE.5060502@archonet.com
Whole thread Raw
In response to Getting number of affected row after performing update  (Yan Cheng Cheok <yccheok@yahoo.com>)
Responses Getting number of affected rows after DELETE FROM
List 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 by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Not able to access schema functions and table...
Next
From: Jignesh Shah
Date:
Subject: How to get the users name from users group?