serial type vs. sequences

Поиск
Список
Период
Сортировка
От Suchandra Thapa
Тема serial type vs. sequences
Дата
Msg-id 1068670760.5193.43.camel@hepcat
обсуждение исходный текст
Ответы Re: serial type vs. sequences  (Bruno Wolff III <bruno@wolff.to>)
Re: serial type vs. sequences  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
I was wondering if there was a reliable method to get the last id
inserted into a serial column in a table.  I believe previous
recommendations given were to use a sequence, have your app get the
nextval for the sequence and then use that in the insert.  I was
wondering if things had changed or if that is still the recommended
method.

--
Suchandra Thapa <s-thapa-11@alumni.uchicago.edu>

Вложения

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: Proposal for a cascaded master-slave replication system
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: serial type vs. sequences