Re: Last value inserted - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Last value inserted
Date
Msg-id 20041111180656.GF25936@wolff.to
Whole thread Raw
In response to Last value inserted  (MaRCeLO PeReiRA <gandalf_mp@yahoo.com.br>)
List pgsql-general
On Thu, Nov 11, 2004 at 09:59:16 -0300,
  MaRCeLO PeReiRA <gandalf_mp@yahoo.com.br> wrote:
>
> Well, once I do an INSERT in the parent table, how can
> I know (for sure) which number id was generated by the
> sequence?

Use currval.

pgsql-general by date:

Previous
From: "Uwe C. Schroeder"
Date:
Subject: Re: OID Question
Next
From: Bjørn T Johansen
Date:
Subject: Problem with showing time diff?