mybatis中执行sqlserver语句报错,应该怎么写sql
1.删除表数据,并想在下次插入数据时重置主键索引为1deletefromtableNameDBCCCheckIdent('tableName',RESEED,0)2.插入...
1.删除表数据,并想在下次插入数据时重置主键索引为1
delete from tableName
DBCC CheckIdent('tableName', RESEED, 0)
2.插入表数据执行报错
SET IDENTITY_INSERT tableName ON
insert into tableName (a,b) values('a','b')
SET IDENTITY_INSERT dbo.OpenSale_Pay OFF
应该怎么修改这两处sql啊,求大神帮忙解答一下 展开
delete from tableName
DBCC CheckIdent('tableName', RESEED, 0)
2.插入表数据执行报错
SET IDENTITY_INSERT tableName ON
insert into tableName (a,b) values('a','b')
SET IDENTITY_INSERT dbo.OpenSale_Pay OFF
应该怎么修改这两处sql啊,求大神帮忙解答一下 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询