讲义上:
ORACLE采用自下而上的顺序解析WHERE子句,根据这个原理,表之间的连接必须写在其他WHERE条件之前, 那些可以过滤掉最大数量记录的条件必须写在WHERE子句的末尾. 测试:
select count(*) from person p where dept_id=1; 发现6975条select count(*) from person p where p.sex=1    发现50015条但是
select count(*) from person p where dept_id=1 and p.sex=1

select count(*) from person p wherep.sex=1 and  dept_id=1 
执行的时间一样