sql-query.dev
sql
mysql
sql-server
database
postgresql
mariadb
sqlite
t-sql
sqlalchemy
php
Dark
lastinsertid
[1/1]
PostgreSQL: Last Inserted ID with INSERT RETURNING and CURRVAL
Using INSERT RETURNING:This is the preferred approach. When you perform an INSERT statement, you can add the RETURNING clause to specify columns you want to retrieve after the insert
1