From: Yasir Malik <ymalik@heineken.cs.stevens-tech.edu>
To: Guillaume LELARGE <gleu@wanadoo.fr>
Cc: pgsql-sql@postgresql.org
Subject: Re: Getting last insert value
Date: Sat, 15 Nov 2003 12:43:15 -0500 (EST)
Message-ID: <Pine.LNX.4.58.0311151242390.11047@heineken.cs.stevens-tech.edu> (raw)
In-Reply-To: <200311151741.41361.gleu@wanadoo.fr>
References: <Pine.SGI.4.58.0311151003320.76056@guinness.cs.stevens-tech.edu>
<200311151640.42892.gleu@wanadoo.fr>
<200311151741.41361.gleu@wanadoo.fr>
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@wanadoo.fr>
> To: pgsql-sql@postgresql.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
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: ymalik@heineken.cs.stevens-tech.edu, gleu@wanadoo.fr
Subject: Re: Getting last insert value
In-Reply-To: <Pine.LNX.4.58.0311151242390.11047@heineken.cs.stevens-tech.edu>
References: <Pine.SGI.4.58.0311151003320.76056@guinness.cs.stevens-tech.edu> <200311151640.42892.gleu@wanadoo.fr> <200311151741.41361.gleu@wanadoo.fr> <Pine.LNX.4.58.0311151242390.11047@heineken.cs.stevens-tech.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox