|
atgc 发表于 2016-1-25 14:03 ![]()
怎么会没发看呢?业务上数据是怎么样的,必须是知道的,否则怎么写代码啊
我刚差了一下表大约200G吧语句如下:
INSERT /*+append*/
INTO IDC_DW_D_URL NOLOGGING
SELECT/*+parallel(t,8)*/ t.acct_date,
t.idc_url,
t.houseid,
SUM(t.upflow) up_flow,
SUM(t.downflow) down_flow,
t.city_id
FROM idc_dw_h_url t
WHERE t.acct_date = '20150930'
GROUP BY t.acct_date, t.idc_url, t.houseid, t.city_id; |
|