Oracle Table连接方式分析(二)

2014-11-24 17:17:56 · 作者: · 浏览: 1
sistent gets


0 physical reads


0 redo size


835 bytes sent via SQL*Net to client


523 bytes received via SQL*Net from client


2 SQL*Net roundtrips to/from client


0 sorts (memory)


0 sorts (disk)


3 rows processed


12:01:51 SCOTT@ prod>


11:59:48 SCOTT@ prod>select /*+ use_nl(d e)*/ e.ename,e.sal,d.deptno,d.dname


11:59:49 2 from dept d,emp e


11:59:49 3 where d.deptno=e.deptno ;


14 rows selected.


Elapsed: 00:00:00.03


Execution Plan


----------------------------------------------------------


Plan hash value: 4192419542


---------------------------------------------------------------------------


| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |


---------------------------------------------------------------------------


| 0 | SELECT STATEMENT | | 14 | 294 | 10 (0)| 00:00:01 |


| 1 | NESTED LOOPS | | 14 | 294 | 10 (0)| 00:00:01 |


| 2 | TABLE ACCESS FULL| DEPT | 4 | 44 | 3 (0)| 00:00:01 |


|* 3 | TABLE ACCESS FULL| EMP | 4 | 40 | 2 (0)| 00:00:01 |


---------------------------------------------------------------------------


Predicate Information (identified by operation id):


---------------------------------------------------


3 - filter("D"."DEPTNO"="E"."DEPTNO")


Statistics


----------------------------------------------------------


1 recursive calls


0 db block gets


37 consistent gets


0 physical reads


0 redo size


1038 bytes sent via SQL*Net to client


523 bytes received via SQL*Net from client


2 SQL*Net roundtrips to/from client


0 sorts (memory)


0 sorts (disk)


14 rows processed