I thought I read recently that it is possible to get the auto_incremented id of a record inserted, using SQLSelect and adding something like ‘RETURNING ID’. No I can’t find it anywhere. Probably have some detail wrong, or I just dreamed it.
At any rate what is the easiest way to get the ID of the newly inserted record?
I realize I could do,
SELECT max(ID) FROM table
but this could return a record added by another user in the meantime.