一、insert into select
insert into table1 (字段1,字段2) select 字段1,字段2 from table2
这种方式需要table1表和对象的字段都必须存在
二、create table as select
create table table1 as select * from table2
这种方式是根据table2的表结构创建table1
一、insert into select
insert into table1 (字段1,字段2) select 字段1,字段2 from table2
这种方式需要table1表和对象的字段都必须存在
二、create table as select
create table table1 as select * from table2
这种方式是根据table2的表结构创建table1