假设在emp表的deptno列建了一个普通索引
在我执行:delete from scott.emp
where empno > 7800
and exists (select null
from scott.dept
where scott.dept. deptno = scott.emp.deptno);
在执行计划里发现没有走deptno上的索引,这是为什么?
假设走了索引在速度上会不会有很大提升(在emp、dept表数据量特别大的时候)。
在我执行:delete from scott.emp
where empno > 7800
and exists (select null
from scott.dept
where scott.dept. deptno = scott.emp.deptno);
在执行计划里发现没有走deptno上的索引,这是为什么?
假设走了索引在速度上会不会有很大提升(在emp、dept表数据量特别大的时候)。
利用索引效率越高,如果选择性低,有可能也不会利用索引