Thank you all for your help. Yasir Malik On Sat, 15 Nov 2003, Greg Stark wrote:
> Date: 15 Nov 2003 12:50:28 -0500 > From: Greg Stark <[EMAIL PROTECTED]> > To: Guillaume LELARGE <[EMAIL PROTECTED]> > Cc: Yasir Malik <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > Subject: Re: [SQL] Getting last insert value > > > Guillaume LELARGE <[EMAIL PROTECTED]> writes: > > > Doing a "select currval() from my_table" after your insert should work. > > That's "select currval('my_table_pkcol_seq')" actually. > > The above would have called the currval() function for every record of the > table which isn't what you want and in any case currval takes an argument. > > -- > greg > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > ---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly