I have a little witty problem. Say, I inserted a row with some data in a table where a primary key is present. How would one \"SELECT\" the primary key of the row one just i
For Postgresql:
SELECT CURRVAL(pg_get_serial_sequence('schema.table','id'))
Source: https://stackoverflow.com/questions/2944297/postgresql-function-for-last-inserted-id