Re: SQL-question: returning the id of an insert querry

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: SQL-question: returning the id of an insert querry
Дата
Msg-id 20031110161259.GA6483@dcc.uchile.cl
обсуждение исходный текст
Ответ на Re: SQL-question: returning the id of an insert querry  (Scott Chapman <scott_list@mischko.com>)
Список pgsql-general
On Mon, Nov 10, 2003 at 08:09:29AM -0800, Scott Chapman wrote:

> Chronological events here:
>
> X inserts a new record into A.
> Y inserts a new record into A.
> X fetches currval of the SA. What value does X get in this case, the one
> from X's insert or Y's?

X's.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"¿Qué importan los años?  Lo que realmente importa es comprobar que
a fin de cuentas la mejor edad de la vida es estar vivo"  (Mafalda)

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

Предыдущее
От: Scott Chapman
Дата:
Сообщение: Re: SQL-question: returning the id of an insert querry
Следующее
От: "David Green"
Дата:
Сообщение: Re: SQL-question: returning the id of an insert querry