J
jetcoyuan
Unregistered / Unconfirmed
GUEST, unregistred user!
select count(*) from dic_mat_type a ,pro_fin_inventory b,dic_um c,dic_wh_type d
where a.code(+) = b.mat_type and c.code(+)=b.unit and d.code= b.wh_code
and a.role_no in (select role_no from ctl_user_right where userid ='0011')
and d.code in (select wh_code from dic_region_inv_role where role_no
in (select role_no from ctl_user_right where userid ='0011'))
执行上述语句10000条记录要将近1分钟,如何优化
where a.code(+) = b.mat_type and c.code(+)=b.unit and d.code= b.wh_code
and a.role_no in (select role_no from ctl_user_right where userid ='0011')
and d.code in (select wh_code from dic_region_inv_role where role_no
in (select role_no from ctl_user_right where userid ='0011'))
执行上述语句10000条记录要将近1分钟,如何优化