首页  >  文章  >  数据库  >  Oracle 表结构及数据复制

Oracle 表结构及数据复制

WBOY
WBOY原创
2016-06-07 14:57:111090浏览

无详细内容 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