MySQL使用rename命令将大表清理

来源:互联网 发布:云计算大数据智慧城 编辑:程序博客网 时间:2024/06/05 08:39

create table old_table(id int);

create table new_table like old_table;

RENAME TABLE old_table TO backup_table, new_table TO old_table;

0 0
原创粉丝点击