oracle执行计划

2015-07-24 09:16:32 · 作者: · 浏览: 0

1、设置计划

explain plan for 
select * from ( select * from  dun_search_view where 1=1 and (( salename='陈永智' and xsqy='广州办事处') or (','||fzuserid||',' like '%,6839951,%')) ) where rownum <= 30;


2、查询计划

SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);