How can I get the last serial I inserted?

Поиск
Список
Период
Сортировка
От
Тема How can I get the last serial I inserted?
Дата
Msg-id 964333596.397a901c61af6@mail.gurubase.com
обсуждение исходный текст
Список pgsql-general
Dear all,

I would like to insert a row into a table with serial type id as other table's
reference key. After that insert, I would use the inserted serial to insert
into another table.

The problem is how can I find that serial value and ensuring other is inserting
at the same time?


Best regards,
Boris

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

Предыдущее
От: Andrew McMillan
Дата:
Сообщение: Re: Can't put sub-queries values in queries results?
Следующее
От: "Alex Bolenok"
Дата:
Сообщение: Re: How can I get the last serial I inserted?