首頁  >  文章  >  資料庫  >  Oracle 表结构及数据复制

Oracle 表结构及数据复制

WBOY
WBOY原創
2016-06-07 14:57:111091瀏覽

无详细内容 Oracle SQL Developer --只复制表结构create table studentTemp as select * from student where 1=2;--条件为假 未得到数据--复制已有表数据到新表insert into studentTemp select * from student;insert into studentTemp(...) select ... from

Oracle SQL Developer
--只复制表结构
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;
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
上一篇:ETL调度系统下一篇:SQL xp_cmdshell