同一个库,有一个表的条件批量插入到另一个库

insert into table select A,B from table1 where *.*;

table1 A,B索引建了有200多万数据,插入40多万数据 用了9秒

请问有没有优化的方法

我给你个建议

1 去掉索引

2 导入数据

3 加上索引

09-17 11:02