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 – レコードの最後に挿入された ID を取得する
IDENT_CURRENT (Transact-SQL)
@@IDENTITY (Transact-SQL)
SCOPE_IDENTITY (Transact-SQL)