table access by rowid on emp
index range scan on cat_idx
30. 不明确的索引等级
当oracle无法判断索引的等级高低差别,优化器将只使用一个索引,它就是在where子句中被列在最前面的.
举例:
deptno上有一个非唯一性索引,emp_cat也有一个非唯一性索引.
select ename
from emp
where deptno > 20
and emp_cat > ‘a’;
table access by rowid on emp
index range scan on cat_idx
30. 不明确的索引等级
当oracle无法判断索引的等级高低差别,优化器将只使用一个索引,它就是在where子句中被列在最前面的.
举例:
deptno上有一个非唯一性索引,emp_cat也有一个非唯一性索引.
select ename
from emp
where deptno > 20
and emp_cat > ‘a’;