数据库查询语句 实例讲解DB2数据库中SELECT语句高级用法来源: 发布时间:星期五, 2008年5月23日 浏览:717次 评论:0
DB2数据库中SELECT语句高级用法:
1、创建结果表 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; 注意:物化表类似一个查询,没有真正形成表,类型显示为Query。但它完全可以当表来用。
3、复制表结构 create table new_table_name like table_name; 1
相关文章
读者评论
发表评论 |