select @@IDENTITY 在表中有 inserted 触发器的时候 返回的 id 是错误的
解决办法 :使用 select SCOPE_IDENTITY() 代替即可
posted on 2020-11-06 11:28 爱在屋檐下 阅读(420) 评论(0) 收藏 举报