首页 > 数据库技术 > 详细

【测试】并使用scott用户下的emp表写一条SQL语句,执行计划走唯一索引

时间:2016-10-17 20:54:28      阅读:197      评论:0      收藏:0      [点我收藏+]
SQL>set autotrace onSQL>select sal from emp where empno=7902;

       SAL
----------
      3000

Execution Plan
----------------------------------------------------------
Plan hash value: 2949544139

--------------------------------------------------------------------------------------
| Id  | Operation                   | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT            |        |     1 |     8 |     1   (0)| 00:00:01 |
|   1 |  TABLE ACCESS BY INDEX ROWID| EMP    |     1 |     8 |     1   (0)| 00:00:01 |
|*  2 |   INDEX UNIQUE SCAN         | PK_EMP |     1 |       |     0   (0)| 00:00:01 |
--------------------------------------------------------------------------------------

Predicate Information (identified by operation id):
---------------------------------------------------

   2 - access("EMPNO"=7902)

  

 

【测试】并使用scott用户下的emp表写一条SQL语句,执行计划走唯一索引

原文:http://www.cnblogs.com/tomatoes-/p/5970969.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!