一个表中有20w数据,如何把这个表中的数据分为多个表,每个表中存2w?
执行Mysql语句执行:
create table token0 select * from devic limit 0,20000;
create table token1 select * from devic limit 20000,20000;
create table token2 select * from devic limit 40000,20000;
create table token3 select * from devic limit 60000,20000;
create table token4 select * from devic limit 80000,20000;
create table token5 select * from devic limit 100000,20000;
create table token6 select * from devic limit 120000,20000;
create table token7 select * from devic limit 140000,20000;
create table token8 select * from devic limit 160000,20000;
create table token9 select * from devic limit 180000,20000;