@@IDENTITY, SCOPE_IDENTITY 和 IDENT_CURRENT都返回表的IDENTITY列的最后一个插入的值。
@@IDENTITY and SCOPE_IDENTITY return the last identity value generated in any table in the current session. However, SCOPE_IDENTITY returns the value only within the current scope; @@IDENTITY is not limited to a specific scope.
IDENT_CURRENT is not limited by scope and session; it is limited to a specified table.
https://msdn.microsoft.com/en-us/library/ms187342.aspx