In PostgreSQL, how do I get the last id inserted into a table?
In MS SQL there is SCOPE_IDENTITY().
Please do not advise me to use something like this:
For the ones who need to get the all data record, you can add
returning *
to the end of your query to get the all object including the id.