数据库学习笔记 返回插入记录的自增id

下面的指令都是加在插入语句的最后:

PostgreSql : returning id;

SqlServer  : select @@IDENTITY as id;

SQLite      :select last_insert_rowid() as id;

原文地址:https://www.cnblogs.com/hayywcy/p/2297936.html