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

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

--这种构造与现存表相同结构的表,是不会将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; 

原文链接:http://blog.itpub.net/27500440/viewspace-1136915/

猜你喜欢

转载自blog.csdn.net/u010999809/article/details/81231483