What is the best way to get IDENTITY
of inserted row?
(什么是获得最佳方式IDENTITY
插排的?)
I know about @@IDENTITY
and IDENT_CURRENT
and SCOPE_IDENTITY
but don't understand the pros and cons attached to each.
(我知道@@IDENTITY
和IDENT_CURRENT
和SCOPE_IDENTITY
但不了解它们各自的优缺点。)
Can someone please explain the differences and when I should be using each?
(有人可以解释这些差异以及何时使用它们吗?)
ask by Oded translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…