Re: how to determine OID of the row I just inserted???

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jules Alberts" <jules(dot)alberts(at)arbodienst-limburg(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how to determine OID of the row I just inserted???
Date: 2003-02-06 15:08:24
Message-ID: 12380.1044544104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Jules Alberts" <jules(dot)alberts(at)arbodienst-limburg(dot)nl> writes:
> Something like lastval() IMHO is way too risky.

currval() is what you want, and it is *not* risky. Read the sequence
documentation.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Choe 2003-02-06 15:32:48 password() function?
Previous Message Jules Alberts 2003-02-06 15:03:12 Re: how to determine OID of the row I just inserted???