复制表数据和结构的方法

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

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

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

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

  

猜你喜欢

转载自www.cnblogs.com/dewu123/p/10962296.html
今日推荐