- create table new_table_name as
- (select * from table_name) definition only;
2、创建物化查询表(MQT)
- create table new_table_name as
- (select * from table_name)
- data initially deferred refresh deferred;
- refresh table new_table_name;
注意:物化表SELECT语句类似一个查询,没有真正形成表,类型显示为Query。但它完全可以当表来用。
3、复制表结构
- create table new_table_name like table_name;