1.复制表结构和数据
create table 新表名 as select * from 旧表名
create table table1 as select * from table2
2.只复制表结构
create table 新表名 as select * from 旧表名 where 1=2
create table table1 as select * from table2 where 1=2
1.复制表结构和数据
create table 新表名 as select * from 旧表名
create table table1 as select * from table2
2.只复制表结构
create table 新表名 as select * from 旧表名 where 1=2
create table table1 as select * from table2 where 1=2