Possible Duplicate:
Retrieve id of record just inserted into a Java DB (Derby) database
I have a table in a Derby database with a column created:
id INTEGER GENERATED ALWAYS AS IDENTITY
How do I get the id of the last record inserted? How can I know what is the id of the record I have just inserted?