Re: OID stuff

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: OID stuff
Дата
Msg-id 200301291517.11840.josh@agliodbs.com
обсуждение исходный текст
Ответ на OID stuff  (Derek Clarkson <dhc@bigpond.net.au>)
Ответы Re: OID stuff
Список pgsql-novice
Derek,

> In Postgres, I have to use the 'get diagnostics var = result_oid' statement
to
> get the oid of the new record, then do a select on the table to get the
> sequence column value for the new record using this oid, to obtain the new
> sequence value.

Um, what's wrong with "select currval('sequence_name')" ?

--
-Josh Berkus
 Aglio Database Solutions
 San Francisco



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

Предыдущее
От: Derek Clarkson
Дата:
Сообщение: OID stuff
Следующее
От: "Juliet May"
Дата:
Сообщение: Re: New and investigating