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

 

PostgreSql : returning id;

 

SqlServer  : select @@IDENTITY as id;

 

SQLite      :select last_insert_rowid() as id;

相关文章:

  • 2022-12-23
  • 2021-12-01
  • 2021-05-31
  • 2022-12-23
  • 2021-11-07
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2021-11-02
  • 2021-10-30
  • 2022-02-18
相关资源
相似解决方案