oracle查询中会使索引无效的情况总结

总结一下oracle中会使索引无效的情况

1 无where条件;

2 索引列进行运算时;

3 使用like,并且通配符在前的情况;

4 字符型字段为数字时在where条件里不添加引号;

5 not in ,not exist;

6 当变量采用的是times变量,而表的字段采用的是date变量时.或相反情况;

7 单独引用复合索引里非第一位置的索引列;

8 如果column1和column2是同一个表的字段,含有条件column1 < column2或column1 > column2或column1 <= column2或column1 >= column2;

原文地址:https://www.cnblogs.com/jtjs1989/p/3553894.html