select   @@identity     当前会话任何作用域插入的数据的主键ID  
select   scope_identity()   当前会话当前作用域插入的数据的主键ID  
select   ident_current(tablename)   任何会话任何作用域指定表插入的数据的主键ID

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-06-17
猜你喜欢
  • 2021-05-30
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-06-29
  • 2021-07-27
  • 2021-09-11
相关资源
相似解决方案