-- 设置允许显式插入自增列 SET IDENTITY_INSERT tablename ON -- 当然插入完毕记得要设置不允许显式插入自增列 SET IDENTITY_INSERT tablename Off