Re: Last_Inserted Value

Поиск
Список
Период
Сортировка
От Andre Schubert
Тема Re: Last_Inserted Value
Дата
Msg-id 3CA938F7.F8EB74E5@km3.de
обсуждение исходный текст
Ответ на Last_Inserted Value  (Andre Schubert <andre.schubert@km3.de>)
Список pgsql-admin
Tom Lane schrieb:
>
> Andre Schubert <andre.schubert@km3.de> writes:
> > All three tables use the same sequence to increment their id.
> > I want to know if it is possible to find the id of the inserted value of
> > foo.
>
> Try "currval".

I think i cant use it. because all three tables use the same sequence,
and currval
gives me the id from the insert of the last table, not of the first one.

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

Предыдущее
От: "William Meloney"
Дата:
Сообщение: Re: Vacuum returns error
Следующее
От: Andre Schubert
Дата:
Сообщение: Re: Log rotation