时间:2021-07-01 10:21:17 帮助过:34人阅读
增加自增列并复制为新表 无 EXEC sp_dboption 'pub','select into/bulkcopy','true'SELECT ID=IDENTITY(int,1,1),OldTable.* INTO NewTable FROM OldTableEXEC sp_dboption 'pub','select into/bulkcopy','false'
增加自增列并复制为新表EXEC sp_dboption 'pub','select into/bulkcopy','true' SELECT ID=IDENTITY(int,1,1),OldTable.* INTO NewTable FROM OldTable EXEC sp_dboption 'pub','select into/bulkcopy','false'