How can I get the last serial I inserted? - Mailing list pgsql-general

From
Subject How can I get the last serial I inserted?
Date
Msg-id 964333596.397a901c61af6@mail.gurubase.com
Whole thread Raw
List 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 by date:

Previous
From: Andrew McMillan
Date:
Subject: Re: Can't put sub-queries values in queries results?
Next
From: "Alex Bolenok"
Date:
Subject: Re: How can I get the last serial I inserted?