1、create table new_table like old_table;
2、insert into new_table(id,xxxx,xxx) select * from old_table where id>xxxxx;
3、rename table old_table to old_table_bak;
4、rename table new_table to old_table;
3-4写在一起,同时执行;
5、trace table old_table;
1、create table new_table like old_table;
2、insert into new_table(id,xxxx,xxx) select * from old_table where id>xxxxx;
3、rename table old_table to old_table_bak;
4、rename table new_table to old_table;
3-4写在一起,同时执行;
5、trace table old_table;