📜  在 sql server 上插入身份 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:22.651000             🧑  作者: Mango

代码示例1
SET IDENTITY_INSERT sometableWithIdentity ON

INSERT sometableWithIdentity (IdentityColumn, col2, col3, ...)
VALUES (AnIdentityValue, col2value, col3value, ...)

SET IDENTITY_INSERT sometableWithIdentity OFF