create materialized view test as
select d.name,
(select count(1) from tab1 t1 where t1.card=t2.card) con
from tab2 t2
报错 ora-22818 怎么破~
啊? 清楚点
追答where t1.card=t2.card) 这句写的有问题
oracle 物化视图子查询问题 ora-22818
1、先封建到一个普通视图 create view v_test as select d.name,(select count(1) from tab1 t1 where t1.card=t2.card) con from tab2 t2 2、创建物化视图 create materialized view mv_test as select * from v_test