How can I get the next auto increment value from mssql?

using @@IDENTITY which returns the last-inserted identity value

But the preferable solution is to use IDENT_CURRENT('TableName') which
returns the last identity value generated for a specified table in any
session and any scope.

阅读更多
文章标签: table
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭
关闭