Re: Serial key

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Serial key
Дата
Msg-id Pine.LNX.4.33.0402131333390.23705-100000@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Serial key  ("John Sidney-Woollett" <johnsw@wardbrook.com>)
Ответы Re: Serial key
Список pgsql-jdbc

On Fri, 13 Feb 2004, John Sidney-Woollett wrote:

> Alternatively, if you could use a sequence object for the primary key
> value (instead of a serial column), and you switched autocommit off, you
> should be able to determine the last allocated PK id AFTER creating the
> record by querying the currval on the sequence.
>

autocommit has nothing to do with this, sequence state via currval is
session specific, not transaction specific.

Kris Jurka


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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: Startup message issues
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Serial key