物化视图定时刷新之trunc运用

来源:互联网 发布:suse linux 11 编辑:程序博客网 时间:2024/05/21 10:42

 

创建物化视图test_view,并每隔一小时刷新一次数据

[sql] view plain copy
 在CODE上查看代码片派生到我的代码片
  1. create materialized view test_view refresh  force on demand    
  2. start with sysdate next trunc(sysdate,'mi')+1/24 --每隔一小时刷新一次  
  3. as select polno from pol_main   
0 0
原创粉丝点击