Re: GetLastInsertID ?

Поиск
Список
Период
Сортировка
От Mike Nolan
Тема Re: GetLastInsertID ?
Дата
Msg-id 200401041847.i04IlLBd020297@gw.tssi.com
обсуждение исходный текст
Ответ на Re: GetLastInsertID ?  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: GetLastInsertID ?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
> Where do you get that impression? currval() refers to the last ID for the
> session you are in. It's also FAQ question 4.15.3. Even better, if you
> havn't used nextval() in your current session, currval() returns an error,
> so you can't even get it wrong by accident.

I stand corrected.  I was doing some testing of a PHP module that is
called from a web form a while back and got inconsistent results with
currval, I probably had a script error of some kind.
--
Mike Nolan

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

Предыдущее
От: Scott Ribe
Дата:
Сообщение: Re: Scripting a new db server setup
Следующее
От: A E
Дата:
Сообщение: Anything akin to an Evaluate Statement in Postgresql?