时间:2021-07-01 10:21:17 帮助过:24人阅读
select * into temp from XX order by newid() -- 复制表结构 truncate table XX -- 清空表 SET IDENTITY_INSERT XX OFF insert into XX(gameid) select gameid from temp order by newid() -- 随即写入 SET IDENTITY_INSERT XX ON drop table temp -- 删掉临时表
MSSQL 复制数据 并随机打乱写入
标签:sql mss identity logs game 写入 删掉 div sel