set identity_insert Category ON--打开
insert into Category(Id,Name) select b.Id,b.Name from BookCategory b
set identity_insert Category OFF--关闭
解决“当 IDENTITY_INSERT 设置为 OFF 时,不能为表 'Category' 中的标识列插入显式值。”
最新推荐文章于 2022-09-27 16:13:14 发布
set identity_insert Category ON--打开
insert into Category(Id,Name) select b.Id,b.Name from BookCategory b
set identity_insert Category OFF--关闭