数据库-学习笔记 返回插入记录的自增id
下面的指令都是加在插入语句的最后:
PostgreSql : returning id;
SqlServer : select @@IDENTITY as id;
SQLite :select last_insert_rowid() as id;
下面的指令都是加在插入语句的最后:
PostgreSql : returning id;
SqlServer : select @@IDENTITY as id;
SQLite :select last_insert_rowid() as id;