您的位置:首页 > 编程语言 > Java开发

spring.net nhibernate 不一定是自增变量,也可能是触发器 Batch update returned unexpected row count from update; actual row count: 2; expected: 1

2013-03-14 18:39 645 查看
spring.net nhibernate 不一定是自增变量,也可能是触发器 Batch update returned unexpected row count from update; actual row count: 2; expected: 1

可以查一下看是不是这个表有做了触发器.

如果有,就在 begin后面加: set nocount on 在 end 前加 set nocount off 就可以了.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐