新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
DB2數(shù)據(jù)庫SELECT語句的三種高級用法
SELECT語句是數(shù)據(jù)庫查詢的重要語句,這里介紹三種SELECT語句的高級用法。

1、創(chuàng)建結(jié)果表
- create table new_table_name as
- (select * from table_name) definition only;
2、創(chuàng)建物化查詢表(MQT)
- create table new_table_name as
- (select * from table_name)
- data initially deferred refresh deferred;
- refresh table new_table_name;
注意:物化表SELECT語句類似一個查詢,沒有真正形成表,類型顯示為Query。但它完全可以當表來用。
3、復制表結(jié)構(gòu)
- create table new_table_name like table_name;
新聞標題:DB2數(shù)據(jù)庫SELECT語句的三種高級用法
網(wǎng)站地址:http://fisionsoft.com.cn/article/dpiceej.html


咨詢
建站咨詢
