表:table1; 表字段:id, col1 ,col2 ,col3
步骤1:创建一张相同的表结构
create table new_table like table1;
步骤2:复制数据
insert into new_table (id,col1,col2,col3) select * from table1;
表:table1; 表字段:id, col1 ,col2 ,col3
create table new_table like table1;
insert into new_table (id,col1,col2,col3) select * from table1;