一:ORACLE表结构及数据的复制
1. 复制表结构及其数据:
create table TAB_NEW as select * from TAB_OLD
2. 只复制表结构:
create table TAB_NEW as select * from TAB_OLD where 1=2;
3. 只复制表数据:
如果两个表结构一样:
insert into TAB_NEW select * from TAB_OLD
如果两个表结构不一样:
insert into TAB_NEW (column1,column2...) select column1,column2... from TAB_OLD