Re: Last value inserted

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: Last value inserted
Дата
Msg-id 4193B30B.40905@archonet.com
обсуждение исходный текст
Ответ на Last value inserted  (MaRCeLO PeReiRA <gandalf_mp@yahoo.com.br>)
Список pgsql-general
MaRCeLO PeReiRA wrote:

> How can I now (for sure) with value was generated by
> the sequence to fill the field ID?
>
> (There is lots of users using the software at the same
> time, so I am not able to use the last_value()
> function on the sequence.)

Yes you are nextval()/currval() are multi-user safe. They return the
next/current value *in the current connection*.

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: OID Question
Следующее
От: Robert Fitzpatrick
Дата:
Сообщение: DROP DATABASE, but still there