专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »数据库 » 数据库查询语句 实例讲解DB2数据库中SELECT语句高级用法 »正文

数据库查询语句 实例讲解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;

相关文章

读者评论

  • 共0条 分0页

发表评论

  • 昵称:
  • 内容: