Re: INSERT and get ID

Поиск
Список
Период
Сортировка
От Dave Cramer
Тема Re: INSERT and get ID
Дата
Msg-id 753B003A-F850-4450-A116-88E6BC353BA3@fastcrypt.com
обсуждение исходный текст
Ответ на Re: INSERT and get ID  (Peter.Zoche@materna.de)
Список 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 по дате отправления:

Предыдущее
От: Csaba Nagy
Дата:
Сообщение: Re: INSERT and get ID
Следующее
От: Roland Walter
Дата:
Сообщение: Re: INSERT and get ID