Re: Obtaining the primary key of the record just inserted

Поиск
Список
Период
Сортировка
От Sean Davis
Тема Re: Obtaining the primary key of the record just inserted
Дата
Msg-id 47334F0C.4090508@mail.nih.gov
обсуждение исходный текст
Ответ на Obtaining the primary key of the record just inserted  ("Oliveiros Cristina" <oliveiros.cristina@marktest.pt>)
Список pgsql-novice
Oliveiros Cristina wrote:
> Hello, All,
>
> I have the need to know the primary key assigned to a record I've just
> INSERTed .
>
> Is there an easy way to solve this ?
>
> Similar to SQLServer's  SELECT scope_identity() ; ?
>
> Any help deeply appreciated
Is the primary key a SERIAL column?

Sean


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

Предыдущее
От: "Oliveiros Cristina"
Дата:
Сообщение: Obtaining the primary key of the record just inserted
Следующее
От: Hans-Peter Oeri
Дата:
Сообщение: Re: Obtaining the primary key of the record just inserted