复制表数据和结构的方法

1、oracle复制另外一张表结构到一张新表中

create table newtable as select * from oldtable where 1=2   --复制表结构

2、将数据和表结构复制过来

create table newtable as select * from oldtable   --复制表结构和数据

  

posted @ 2019-06-02 11:16  回忆里的小男孩  阅读(309)  评论(0)    收藏  举报