1、oracle利用现有表创建新表:
(1)建一个新表,架构、字段属性、约束条件、数据记录跟旧表完全一样:
Create Table tb2 as Select * from tb2;
(2)建一个新表,架构跟旧表完全一样,但没有内容:
Create Table tb2 as Select * from tb1 where 1=2;
2、 表的创建时间可以查询user_objects得到
表的大小可以查询user_segments得到.
1、oracle利用现有表创建新表:
(1)建一个新表,架构、字段属性、约束条件、数据记录跟旧表完全一样:
Create Table tb2 as Select * from tb2;
(2)建一个新表,架构跟旧表完全一样,但没有内容:
Create Table tb2 as Select * from tb1 where 1=2;
2、 表的创建时间可以查询user_objects得到
表的大小可以查询user_segments得到.
转载于:https://www.cnblogs.com/haldir/archive/2012/12/03/2799048.html