1、修改标识列
SET IDENTITY_INSERT tb_smallType ON
insert into tb_smallType(id,bigId,smallName) values(8,4,'试验设备')
SET IDENTITY_Insert tb_smallType OFF
其中,tb_smallType 为表名,id 为标识列,标识列必须显示指出。
1、修改标识列
SET IDENTITY_INSERT tb_smallType ON
insert into tb_smallType(id,bigId,smallName) values(8,4,'试验设备')
SET IDENTITY_Insert tb_smallType OFF
其中,tb_smallType 为表名,id 为标识列,标识列必须显示指出。
转载于:https://www.cnblogs.com/luzhiyuan/archive/2013/01/27/2878512.html