begin
set identity_insert DemoIdentity on
insert into DemoIdentity(Def_ID,Def_Value) values(10,'测试');
set identity_insert DemoIdentity off
end
Sql Server 自增列无法写入或 无法将已有数据的列修改为自增的方法
最新推荐文章于 2021-05-27 09:07:42 发布
begin
set identity_insert DemoIdentity on
insert into DemoIdentity(Def_ID,Def_Value) values(10,'测试');
set identity_insert DemoIdentity off
end