ITPub博客

首页 > 数据库 > Oracle > 执行计划星号*的含义

执行计划星号*的含义

原创 Oracle 作者:banana_62 时间:2017-08-18 16:32:08 0 删除 编辑

*:对应步骤有驱动或过滤条件。可以从predicate information中找到
SQL> set autotrace traceonly 
SQL> select * from scott.emp where empno=1122;
SQL> set linesize 150;
SQL> /
 
 
Execution Plan
----------------------------------------------------------
Plan hash value: 2949544139
 
--------------------------------------------------------------------------------------
| Id  | Operation                    | Name   | Rows  | Bytes | Cost (%CPU)| Time     |
--------------------------------------------------------------------------------------
|   0 | SELECT STATEMENT            |             |           1 |          87 |           2   (0)| 00:00:01 |
|   1 |  TABLE ACCESS BY INDEX ROWID| EMP    |           1 |          87 |           2   (0)| 00:00:01 |
|*  2 |   INDEX UNIQUE SCAN            | PK_EMP |           1 |             |           1   (0)| 00:00:01 |
--------------------------------------------------------------------------------------
 
Predicate Information (identified by operation id):
---------------------------------------------------
 
   2 - access("EMPNO"=1122)
 
 
Statistics
----------------------------------------------------------
  0  recursive calls
  0  db block gets
  2  consistent gets
  0  physical reads
  0  redo size
862  bytes sent via SQL*Net to client
512  bytes received via SQL*Net from client
  1  SQL*Net roundtrips to/from client
  0  sorts (memory)
  0  sorts (disk)
  1  rows processed
 
*号表示id为2的一步,过滤条件为"EMPNO"=1122

参考文档:《基于Oracle的SQL优化》

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/31461640/viewspace-2143791/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2017-05-18

  • 博文量
    71
  • 访问量
    65036