Re: Postgres Global Variables - Mailing list pgsql-general

From Tom Lane
Subject Re: Postgres Global Variables
Date
Msg-id 25256.971329151@sss.pgh.pa.us
Whole thread Raw
In response to Postgres Global Variables  (shm@daimlerchrysler.com)
Responses Re: Postgres Global Variables  (Jan Wieck <janwieck@Yahoo.com>)
List pgsql-general
shm@daimlerchrysler.com writes:
> make use of a Sybase global variable called @@rowcount.  @@rowcount
> represents the number of rows affected by the most recent data modification
> operation (inserts, deletes and/or updates).

> Is there an equivalent in Postgres?  Thanks much for the help.

I think the libpq function PQcmdTuples() does what you want, although
it's possible Sybase's behavior differs in some details.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: postgresql 7.1
Next
From: Tom Lane
Date:
Subject: Re: Index on substring?