查询Oracle执行的顺序
explain plan for select CFG_ID, COUNT(0) total
from LOG_FD_VIDEO_SAMPLE a
where 1 = 1
and SERVICE_TYPE = 35
and FOUND_TIME >=
to_date('2014-07-08 00:00:00', 'yyyy-MM-dd HH24:mi:ss')
and FOUND_TIME <=
to_date('2014-07-08 16:00:00', 'yyyy-MM-dd HH24:mi:ss')
AND (cfg_id in
('30811', '30812', '30813', '30814', '30815', '30816', '30817'))
GROUP BY CFG_ID;
查询执行顺序结果
select * from table(DBMS_XPLAN.display);
这个说明执行的是查询索引。