Re: [SQL] Getting last used oid

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: John C Cusick <jcc2(at)juno(dot)com>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Getting last used oid
Date: 1999-12-07 16:53:40
Message-ID: Pine.GSO.4.02A.9912071751580.3057-100000@Panter.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Tue, 7 Dec 1999, John C Cusick wrote:

> How can I call up the last oid used in an insert statement? I've checked

If you are writing in C, you can use the PQoidStatus() function. Similar
functions are provided in other language wrappers as well (e.g., Perl). A
way to do this in psql is going to be in the next release.

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stuart Rison 1999-12-07 17:57:30 Re: [SQL] Fw: Whats happen here?
Previous Message John C Cusick 1999-12-07 16:31:16 Getting last used oid