Postgresql function for last inserted id

Posted by Anton on Stack Overflow See other posts from Stack Overflow or by Anton
Published on 2010-05-31T14:55:24Z Indexed on 2010/05/31 15:53 UTC
Read the original article Hit count: 359

Filed under:

I am looking for function in postgres that returns last inserted id into table. In MS SQL there is SCOPE_IDENTITY(). Is something same in PostgreSQL?

Please, do not advise use something like this:

select max(id) from table

© Stack Overflow or respective owner

Related posts about postgresql