Re: mysql's last_insert_id

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема Re: mysql's last_insert_id
Дата
Msg-id 3F4F5BA8.7070404@fireserve.net
обсуждение исходный текст
Ответ на Re: mysql's last_insert_id  (Dennis Björklund <db@zigo.dhs.org>)
Список pgsql-general
Dennis Björklund wrote:

>It's not needed. The following works fine (if the tables exists of course)
>and has no problems with concurrency:
>
>INSERT INTO foo(id,x) VALUES (DEFAULT, 'value');
>INSERT INTO bar(id,foo_ref) VALUES (DEFAULT, currval('foo_id_seq'));
>
>
>
You don't even need the 'DEFAULT' word as I remember, but it makes for
easier code to follow.


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

Предыдущее
От: Jason Godden
Дата:
Сообщение: PostgreSQL on Slashdot
Следующее
От: Tom Lane
Дата:
Сообщение: Re: PostgreSQL upgrade -> fails to start server