create table tmp like paper_author; ALTER TABLE tmp ADD INDEX ( `PaperID` ) insert into tmp(ooo,...) selectooo,... from paper_author Query OK, 35510600 rows affected (9 min 24.99 sec) Records: 35510600 Duplicates: 0 Warnings: 0 RENAME TAB
create table tmp like paper_author;
ALTER TABLE tmp ADD INDEX ( `PaperID` )
insert into tmp(ooo,...) select ooo,... from paper_author
Query OK, 35510600 rows affected (9 min 24.99 sec)
Records: 35510600 Duplicates: 0 Warnings: 0
RENAME TABLE paper_author TO tmp2, tmp to paper_author;
drop table tmp2;
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com