|
"我的脚本如下:
select * from tDstDpsData T
where Exists(select 1 from tStkPc where OrgCode=T.OrgCode and PluID=T.PluID and JsCode='2')"
-- Not sure how many rows in table tStkPc, and how many rows satisfy the where clause condition;
-- Make sure all the three columns: OrgCode, PluID and JsCode got indexes;
-- Make sure you did collect the stattistics of the tablle and the indexed column of that table;
-- After above step, please generate the sql explain again, and show us the plan.
Thanks!
zOracleDBA |
|