Re: plpgsql question

From: Michael A Nachbaur <mike(at)nachbaur(dot)com>
To: Brian Hirt <bhirt(at)mobygames(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql question
Date: 2003-11-26 00:14:18
Message-ID: 200311251614.18574.mike@nachbaur.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

DECLARE
RowsAffected INTEGER;
BEGIN
-- DO your statement
GET DIAGNOSTICS RowsAffected = ROW_COUNT;
END

On Tuesday 25 November 2003 02:56 pm, Brian Hirt wrote:
> I'm looking to find out how many rows were effected during an update in
> a trigger. I ran across this message by jan talking about this feature
> possibly being added to postgresql 6.5, but I can't find any reference
> to such a feature in the current documentation. Did this ever make it
> into postgresql?
>
> http://archives.postgresql.org/pgsql-sql/1999-02/msg00110.php
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

--
/* Michael A. Nachbaur <mike(at)nachbaur(dot)com>
* http://nachbaur.com/pgpkey.asc
*/

"You're very sure of your facts, " he said at last, "I
couldn't trust the thinking of a man who takes the Universe
- if there is one - for granted. "

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gaetano Mendola 2003-11-26 00:22:22 Re: RPM RH9.0 conflict with unixODBC
Previous Message Uwe C. Schroeder 2003-11-26 00:07:32 Re: Lock strategies!