指点成金-最美分享吧

登录

Oracle SQL快速复制表结构或数据

佚名 举报

篇首语:本文由小编为大家整理,主要介绍了Oracle SQL快速复制表结构或数据相关的知识,希望对你有一定的参考价值。

1、复制表结构

     create table table1 as select * from table2 where 1=2;

2、复制表结构及数据

     create table table1 as select * from table2;

3、复制数据

      insert into table1 select * from table2;

4、按字段复制

      insert into table1(column1,column2) select column1,column2 from table2;

以上是关于Oracle SQL快速复制表结构或数据的主要内容,如果未能解决你的问题,请参考以下文章