oracle sql强制走索引用法实例

        在进行sql执行过程中,由于有时候系统自动优化的方式并不是最优的,甚至走全表扫描。需要我们手工添加hint来提高查询效率。 

select /*+ index(t2 IX_T2_NO) +*/ *
from table1 t1,table2 t2
where t1.no = t2.no
 AND t1.SUB_NO = '123456';

猜你喜欢

转载自bijian1013.iteye.com/blog/2245709