Cannot insert explicit value for identity column in table '表名' when IDENTITY_INSERT is set to OFF
2条回答 默认 最新
- 写给初学者的几封信 2017-04-10 01:34关注
问题:sql Insert的时候报的错误.
分析:要插入的表中有自增字段.
解决:跳过此自增字段不插入.
例如:tableA中的a为自增字段
insert into tableA(a,b,c)
select b,c from tableB本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报