📜  sqlserver insert with set identity - C 编程语言代码示例

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

代码示例1
SET IDENTITY_INSERT sometableWithIdentity ON

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

SET IDENTITY_INSERT sometableWithIdentity OFF