📜  设置 identity_insert 关闭 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:26.445000             🧑  作者: Mango

代码示例3
SET IDENTITY_INSERT sometableWithIdentity ON

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

SET IDENTITY_INSERT sometableWithIdentity OFF
7
identity_insert is set to offSQL By Super Snail on Oct 6 2020
SET IDENTITY_INSERT tbl_content ON
1
set identity_insert offSQL By Bams999 on Jan 27 2021
  
SET IDENTITY_INSERT [ [ database_name . ] schema_name . ] table_name { ON | OFF }