Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用了“SET IDENTITY_INSERT OFF”,这正在成功执行,但在表中仍然只有身份
请帮助任何人
这会让你发疯,但做你想做的事
SET IDENTITY_INSERT ON
这篇文章解释了它。
要点是,无论这个决定多么误导,有人称此语句将指您的脚本是否可以更改身份列。相当倒退,但这就是它的方式:D