Re: INSERT and get ID - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: INSERT and get ID
Date
Msg-id 753B003A-F850-4450-A116-88E6BC353BA3@fastcrypt.com
Whole thread Raw
In response to Re: INSERT and get ID  (Peter.Zoche@materna.de)
List pgsql-jdbc
Yes, it's absolutely safe!

Dave
On 27-Jul-05, at 9:29 AM, Peter.Zoche@materna.de wrote:

>> You have to do a a "SELECT curval('myseq')" after the insert.
>>
>
> I had this in mind, too, but I am not sure if it is really safe if
> there are several inserts at the same time...
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
>


pgsql-jdbc by date:

Previous
From: Csaba Nagy
Date:
Subject: Re: INSERT and get ID
Next
From: Roland Walter
Date:
Subject: Re: INSERT and get ID