Re: Last value inserted

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: MaRCeLO PeReiRA <gandalf_mp(at)yahoo(dot)com(dot)br>
Cc: pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Last value inserted
Date: 2004-11-11 18:06:56
Message-ID: 20041111180656.GF25936@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Nov 11, 2004 at 09:59:16 -0300,
MaRCeLO PeReiRA <gandalf_mp(at)yahoo(dot)com(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Greg Stark 2004-11-11 18:08:36 Re: Lionel Lauer 58 Gore Street Fitzroy, Victoria Australia 3065
Previous Message Bruno Wolff III 2004-11-11 18:05:26 Re: making another super user other than postgres