create table as select from和 insert into select from的用法

知识共享许可协议 Creative Commons

复制表(含数据): create table table_name2 as select * from table_name1

复制表(不含数据): create table table_name2 as select * from table_name1 where 1=2

只复制表数据:insert into table_name2 select * from table_name1

猜你喜欢

转载自blog.csdn.net/ssxueyi/article/details/91884687