分批数据写入和清空操作

文章封面
摘要: 1、create table new_table like old_table; 2、insert into new_table(id,xxxx,xxx) select * from old

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;

31925 阅读 ← 返回技术栈
图片放大