How to get a value from the last inserted row?

Posted by eflles on Stack Overflow See other posts from Stack Overflow or by eflles
Published on 2008-10-27T18:42:11Z Indexed on 2010/06/01 21:04 UTC
Read the original article Hit count: 206

Filed under:
|
|
|

Is there some way to get a value from the last inserted row?

I am inserting a row where the PK will automatically increase, and I would like to get this PK. Only the PK is guaranteed to be unique in the table.

I am using Java with a JDBC and PostgreSQL.

© Stack Overflow or respective owner

Related posts about java

Related posts about database