360图书馆文章备份

← 返回首页

oracle创建一张与其他表相同表结构的表

2019-10-18

--这种构造与现存表相同结构的表,是不会将comment带过来的

--A.只是建立t1表,与emp表结构相同,并不添加数据

create table t1 as select * from scott.emp where 1=0; 

--A.只是建立t1表,与emp表结构相同,添加数据

create table t1 as select * from scott.emp;