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