zoukankan      html  css  js  c++  java
  • 创建物化视图

    create materialized view port 
    refresh complete
    start with sysdate
    next sysdate + 1/1440
    as 
    with t as 
    (
    select b.ename,b.sal,
           (select dname from scott.dept a where a.deptno=b.deptno )dname
           from scott.emp b order by dname
           
    )
    select * from t       
    
    --上面执行时报物化视图里不能出现子查询
           
    --改写成下面的即可
    ------------------------------------------------------------------------
    create materialized view emp1 
    refresh complete
    start with sysdate
    next sysdate + 1/1440
    as 
    with t as 
    (
    select a.ename,a.sal,b.dname from scott.emp a 
    inner join scott.dept b on a.deptno=b.deptno
    order by b.dname
           
    )
    select * from t
  • 相关阅读:
    ACM HDU 1176 免费馅饼(DP)
    PHP下载时中文文件名乱码的问题
    NYOJ 27
    NYOJ 148
    NYOJ 8
    NYOJ 138
    NYOJ 461
    POJ 1200
    STL排序算法
    NYOJ 523
  • 原文地址:https://www.cnblogs.com/tianmingt/p/3801023.html
Copyright © 2011-2022 走看看