首页 > 数据库 > Oracle > oracle创建一张与其他表相同表结构的空表
--只是建立ta表,与emp表结构相同,并不添加数据
--这种构造与现存表相同结构的表,是不会将comment带过来的
create table t1 as select * from scott.emp where 1=0;
--建立tb表,结构与dept结构相同,将dept表中的数据导入其中
--这种构造与现存表相同结构的表,是不会将comment带过来的:
create table t2 as select * from scott.dept where 1=1;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/27575921/viewspace-2056476/ ,如需转载,请注明出处,否则将追究法律责任。