码迷,mamicode.com
首页 > 数据库 > 详细

【测试】使用hr用户下的employees表写一条SQL语句,执行计划走索引全扫描

时间:2016-10-17 20:32:27      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

SQL> select count(*) from employees;

  COUNT(*)
----------
       107


Execution Plan
----------------------------------------------------------
Plan hash value: 3580537945

-------------------------------------------------------------------------
| Id  | Operation        | Name         | Rows  | Cost (%CPU)| Time     |
-------------------------------------------------------------------------
|   0 | SELECT STATEMENT |              |     1 |     1   (0)| 00:00:01 |
|   1 |  SORT AGGREGATE  |              |     1 |            |          |
|   2 |   INDEX FULL SCAN| EMP_EMAIL_UK |   107 |     1   (0)| 00:00:01 |
-------------------------------------------------------------------------


Statistics
----------------------------------------------------------
        224  recursive calls
          0  db block gets
        180  consistent gets
          1  physical reads
          0  redo size
        527  bytes sent via SQL*Net to client
        523  bytes received via SQL*Net from client
          2  SQL*Net roundtrips to/from client
          6  sorts (memory)
          0  sorts (disk)
          1  rows processed

 

【测试】使用hr用户下的employees表写一条SQL语句,执行计划走索引全扫描

标签:

原文地址:http://www.cnblogs.com/tomatoes-/p/5970980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!