Re: SEQUENCE primary key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SEQUENCE primary key
Дата
Msg-id 5868.1171419648@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: SEQUENCE primary key  (Chris <dmagick@gmail.com>)
Список pgsql-general
Chris <dmagick@gmail.com> writes:
> Actually it's better to use currval.

Right.  Also, in 8.2 and up there's INSERT RETURNING, which is far
more flexible --- for instance it could pull back an insertion
timestamp.

            regards, tom lane

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