Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sqlserver 中的 mysql_insert_id() MySQL 函数的等价物是什么?
看看以下
SQL SERVER – @@IDENTITY vs SCOPE_IDENTITY() vs IDENT_CURRENT – 检索最后插入的记录标识
IDENT_CURRENT (Transact-SQL)
@@IDENTITY (Transact-SQL)
SCOPE_IDENTITY (Transact-SQL)