Sql 重置自动增长列

Sql 重置自动增长列:

dbcc checkident(表名, reseed, 0)

使用的情况,一般出现在主外键关联表,导致无法 truncate 只能delete的情况。

此时我们可能会需要重置自动增长列




原文地址:https://www.cnblogs.com/hanjun0612/p/9779891.html