|
- declare
- v_1 varchar2(200);
- begin
- dbms_advisor.tune_mview(
- v_1,
-
- 'CREATE MATERIALIZED VIEW cust_sales_mv
- BUILD IMMEDIATE
- REFRESH FAST ON COMMIT
- ENABLE QUERY REWRITE
- AS SELECT c.cust_id,
- SUM(amount_sold) AS dollar_sales
- FROM SALES s, CUSTOMERS c
- WHERE s.cust_id=c.cust_id
- GROUP BY c.cust_id'
- );
- end;
- /
- select to_char(statement) from user_tune_mview;
复制代码
|
|