sql中的select *into new_table from old_table和insert into new_table (id1,name1)select (id,name) from old_table 用于将一个表中的数据备份到另一个表中。
不过,mysql不支持select *into 语句,可以用
另一种方式代替:
create table table2 (select *from table1)
select *into语句自动创建新表,insert into语句是要提前创建好新表.
相关链接1
相关链接2
相关链接3