| From: | Yasir Malik <ymalik(at)heineken(dot)cs(dot)stevens-tech(dot)edu> |
|---|---|
| To: | Guillaume LELARGE <gleu(at)wanadoo(dot)fr> |
| Cc: | pgsql-sql(at)postgresql(dot)org |
| Subject: | Re: Getting last insert value |
| Date: | 2003-11-15 17:43:15 |
| Message-ID: | Pine.LNX.4.58.0311151242390.11047@heineken.cs.stevens-tech.edu |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-sql |
Guillaume,
Thank you very much for your response.
Yasir
On Sat, 15 Nov 2003, Guillaume LELARGE wrote:
> Date: Sat, 15 Nov 2003 17:41:41 +0000
> From: Guillaume LELARGE <gleu(at)wanadoo(dot)fr>
> To: pgsql-sql(at)postgresql(dot)org
> Subject: Re: [SQL] Getting last insert value
>
> Le Samedi 15 Novembre 2003 16:40, vous avez écrit :
> > Doing a "select currval() from my_table" after your insert should work.
> >
> Actually, this is
> select currval('my_sequence')
> Sorry about this.
>
> > For more details, see
> > http://www.postgresql.org/docs/7.3/interactive/functions-sequence.html
>
>
> --
> Guillaume
> <!-- http://absfr.tuxfamily.org/
> http://pgsql-fr.tuxfamily.org/ -->.
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Greg Stark | 2003-11-15 17:50:28 | Re: Getting last insert value |
| Previous Message | Guillaume LELARGE | 2003-11-15 17:41:41 | Re: Getting last insert value |