标签: mysql sql-server
sqlserver中mysql_insert_id()MySQL函数的等价物是什么?
答案 0 :(得分:2)
看看以下
SQL SERVER – @@IDENTITY vs SCOPE_IDENTITY() vs IDENT_CURRENT – Retrieve Last Inserted Identity of Record
IDENT_CURRENT (Transact-SQL)
@@IDENTITY (Transact-SQL)
SCOPE_IDENTITY (Transact-SQL)