分批数据写入和清空操作


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;

0 条评论

当前评论已经关闭


登录用户头像