zoukankan      html  css  js  c++  java
  • INDEX RANG SCAN无需回表的情况

    create table a3 as select * from dba_objects
    
    create index a3_idx1 on a3(owner);
    
    
    select owner from a3 where owner='SCOTT';
    
    
    SQL> set linesize 200
    SQL> set pagesize 200
    SQL> set autot trace
    SQL> select owner from a3 where owner='SCOTT';
    
    1870 rows selected.
    
    
    Execution Plan
    ----------------------------------------------------------
    Plan hash value: 3836947260
    
    ----------------------------------------------------------------------------
    | Id  | Operation	 | Name    | Rows  | Bytes | Cost (%CPU)| Time	   |
    ----------------------------------------------------------------------------
    |   0 | SELECT STATEMENT |	   |  1870 | 31790 |	 5   (0)| 00:00:01 |
    |*  1 |  INDEX RANGE SCAN| A3_IDX1 |  1870 | 31790 |	 5   (0)| 00:00:01 |
    ----------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       1 - access("OWNER"='SCOTT')
    
    Note
    -----
       - dynamic sampling used for this statement (level=2)
    
    
    Statistics
    ----------------------------------------------------------
    	  7  recursive calls
    	  0  db block gets
    	212  consistent gets
    	  0  physical reads
    	  0  redo size
          25551  bytes sent via SQL*Net to client
           1783  bytes received via SQL*Net from client
    	126  SQL*Net roundtrips to/from client
    	  0  sorts (memory)
    	  0  sorts (disk)
           1870  rows processed
    

  • 相关阅读:
    项目开发基础概念
    django 对接elasticsearch实现全文检索
    win10安装docker
    Mac VMware Fusion 中修改 centos7 虚拟机的磁盘空间、扩容
    CentOS 7下 YUM 本地仓库的搭建
    mac与虚拟机传输文件
    mac和windows快速锁定电脑
    rpm -qa详解
    虚拟机安装centos6
    mac与iPhone互传文件
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13352372.html
Copyright © 2011-2022 走看看