首页 > 数据库技术 > 详细

oracle-复制表结构和表数据

时间:2016-06-14 22:19:17      阅读:247      评论:0      收藏:0      [点我收藏+]

1.复制表结构和表数据

create table table_new as select * from table_old

2.复制表结构

create table table_new as select * from table_old where 1<>1

3.复制表的指定字段

create table table_new as select o.column1,o.column2 from table_old o where 1<>1

4.复制表的指定字段的数据

create table table_new as select o.column1,o.column2 from table_old

简单描述,作为新手入门,写下来留以后技术回顾之用~

 

oracle-复制表结构和表数据

原文:http://www.cnblogs.com/handsomeso/p/5585519.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!