【发布时间】:2017-05-15 17:55:32
【问题描述】:
有一个分区表A,有4个分区,我要加载数据到表B。
insert into B select * from A partion (p0) where type = 0;
insert into B select * from A partion (p1) where type = 0;
insert into B select * from A partion (p2) where type = 0;
insert into B select * from A partion (p3) where type = 0;
如何并行加载每个分区的数据。仅在一个连接中。
【问题讨论】:
-
你不能。
-
除了创建另一个与现有表完全相同的表之外,还有什么意义?
-
对不起,我忘记了条件
-
这仍然是一项毫无意义的任务
-
我有办法,使用mysql事件,并行执行