冷静、沉淀

解决'ORA-12015: 不能从复杂查询中创建一个可快速刷新的实体化视图'一个变通方法

上一篇 / 下一篇  2004-10-15 00:00:00 / 个人分类:Oracle

enjoy it.


比如一个查询
select t1.*,t2.*,t3.*
from t1,t2,t3
where t1.c1 = t2.c1 and t1.c1 = t3.c1
/

可以分别建立三个表t1,t2,t3快速刷新的物化视图mv_t1,mv_t2,mv_t3,然后建立视图
create view test as
select mv_t1.*,mv_t2.*,mv_t3.*
from mv_t1,mv_t2,mv_t3
where mv_t1.c1 = mv_t2.c1 and mv_t1.c1 = mv_t3.c1
/
该视图性能上与上述查询的物化视图会有不少差距,
就看用户能否接受了.


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-10-08  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 13364
  • 日志数: 838
  • 建立时间: 2007-12-28
  • 更新时间: 2008-10-02

RSS订阅

Open Toolbar