alter table dataStatistics auto_increment= 1;
SET @rownum = 0;
UPDATE dataStatistics SET anId = @rownum := @rownum +1;
79w条记录竟然耗时99.897s
alter table dataStatistics auto_increment= 1;
SET @rownum = 0;
UPDATE dataStatistics SET anId = @rownum := @rownum +1;
79w条记录竟然耗时99.897s