赵跳跳

导航

创建表副本

CREATE  TABLE.......AS  SELECT..........
举例:
1.创建副本并包含所有数据
create table emp_copy  as  select * from scott.emp;
2.创建副本并不包含数据
create table emp_copy  as  select * from scott.emp where 1=2;
3.创建不完全不相同的类型
create table emp_copy  as  select empno,ename,to_char(hiredate,'yyyy-mm-dd')ashiredate  from scott.emp;

posted on 2018-01-12 09:53  赵跳跳  阅读(251)  评论(0编辑  收藏  举报