Oracle數據庫表結構及數據的復制,具體代碼如下:
--只復制表結構
create table studentTemp as select * from student where 1=2;--條件為假 未得到數據
--復制已有表數據到新表
insert into studentTemp select * from student;
insert into studentTemp(...) select ... from student;
--復制表結構與數據
create table copyStudent as select * from student;
insert into copyStudent select * from student;
更多信息請查看IT技術專欄