Re: Postgres Global Variables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: shm(at)daimlerchrysler(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Postgres Global Variables
Date: 2000-10-12 05:39:11
Message-ID: 25256.971329151@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

shm(at)daimlerchrysler(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-10-12 05:49:19 Re: Index on substring?
Previous Message Tom Lane 2000-10-12 05:37:03 Re: postgresql 7.1