In PostgreSQL, how do I get the last id inserted into a table?

In MS SQL there is SCOPE_IDENTITY().

Please do not advise me to use something like this:

select max(id) from table

15 Answers
15

Leave a Reply

Your email address will not be published. Required fields are marked *