lz怎么说你好呢,emp都拼错了,还怪oracle
1* select /*+use_nl(emp,dept)*/ dept.dname,emp.ename from emp,dept where emp.deptno=dept.deptno(+) order by dept.dname
SQL> /
已选择14行。
已用时间: 00: 00: 00.01
执行计划
----------------------------------------------------------
Plan hash value: 648909887
-----------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
-----------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 14 | 308 | 18 (6)| 00:00:01 |
| 1 | SORT ORDER BY | | 14 | 308 | 18 (6)| 00:00:01 |
| 2 | NESTED LOOPS OUTER | | 14 | 308 | 17 (0)| 00:00:01 |
| 3 | TABLE ACCESS FULL | EMP | 14 | 126 | 3 (0)| 00:00:01 |
| 4 | TABLE ACCESS BY INDEX ROWID| DEPT | 1 | 13 | 1 (0)| 00:00:01 |
|* 5 | INDEX UNIQUE SCAN | PK_DEPT | 1 | | 0 (0)| 00:00:01 |
-----------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
5 - access("EMP"."DEPTNO"="DEPT"."DEPTNO"(+))
统计信息
----------------------------------------------------------
1 recursive calls
0 db block gets
24 consistent gets
0 physical reads
0 redo size
820 bytes sent via SQL*Net to client
520 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
14 rows processed