Re: get sequence value of insert command

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: get sequence value of insert command
Дата
Msg-id 3CE4C46C-3A0C-11D9-8C65-000A95C88220@myrealbox.com
обсуждение исходный текст
Ответ на get sequence value of insert command  (Erik Thiele <erik@thiele-hydraulik.de>)
Список pgsql-sql
On Nov 19, 2004, at 5:41 PM, Erik Thiele wrote:

> now how do i know the id of my newly inserted element? and
> how can this be done in a completely concurrency safe way?

This is a FAQ (4.15.1, among others). See currval() and nextval() in 
the documentation as well.

Michael Glaesemann
grzm myrealbox com



В списке pgsql-sql по дате отправления:

Предыдущее
От: Achilleus Mantzios
Дата:
Сообщение: Re: get sequence value of insert command
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: get sequence value of insert command