方法1:
先删除表,再重新建表
如:drop tabel t1
create t1()
方法2:
使用truncate
如:truncate tabel t1
方法3:
重置种子
如:DBCC CHECKIDENT('t1', {RESEED|NORESEED}[,new_reseed_value ])
方法1:
先删除表,再重新建表
如:drop tabel t1
create t1()
方法2:
使用truncate
如:truncate tabel t1
方法3:
重置种子
如:DBCC CHECKIDENT('t1', {RESEED|NORESEED}[,new_reseed_value ])
转载于:https://www.cnblogs.com/biyyss_sun/archive/2011/04/19/1643421.html