Re: prepare, execute & oids

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: prepare, execute & oids
Дата
Msg-id 20060801184725.GA18690@winnie.fuhr.org
обсуждение исходный текст
Ответ на prepare, execute & oids  (phazon <phazon.ml@gmail.com>)
Ответы Re: prepare, execute & oids
Список pgsql-general
On Tue, Aug 01, 2006 at 06:19:29PM +0200, phazon wrote:
> I juste want to get the OID of the line inserted. Does anyone know how to do
> it ?

It depends on the client interface.  What interface are you using?

OIDs are deprecated as row identifiers; the preferred method is to
use a sequence (serial column).  To get a sequence's value you can
use currval() or lastval() (the latter available in 8.1).

--
Michael Fuhr

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Can you run out of oids?
Следующее
От: Sundar Narayanaswamy
Дата:
Сообщение: Re: Autovacuum help..