ITeye博客

物化视图 语法

c_c · 2010-07-19 20:47 · 数据库 · 数据库 · Markdown

创建物化视图:

 create materialized view MV_except_pattern_orders
  as
    select * from v_except_pattern_orders

删除物化视图:

 

 

drop materialized view MV_except_pattern_orders

 

drop materialized view MV_except_pattern_orders

 

 

 

更新物化视图:

call DBMS_MVIEW.REFRESH('MV_EXCEPT_PATTERN_ORDERS','C');

  

 

创建自动更新的物化视图:

 create materialized view MV_except_pattern_orders
  refresh Complete on demand
      start with to_date('2010-01-01 13:20:51','YYYY-MM-DD HH24:MI:SS') next sysdate+1/(24*60)
  as
    select * from v_except_pattern_orders

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。