COUNT(1)
----------
2337184
SQL> select count(2) from t2;
COUNT(2)
----------
100
SQL> desc t1
Name Null? Type
----------------------------------------- -------- ----------------------------
OBJECT_ID NUMBER
OBJECT_NAME VARCHAR2(128)
SQL> desc t2
Name Null? Type
----------------------------------------- -------- ----------------------------
OBJECT_ID NUMBER
OBJECT_NAME VARCHAR2(128)
111->内表小于外表
Statistics(exists)
----------------------------------------------------------
15 recursive calls
12 db block gets
53 consistent gets
0 physical reads
0 redo size
1460 bytes sent via SQL*Net to client
524 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
15 rows processed
222->内表大于外表
Statistics
----------------------------------------------------------
15 recursive calls
12 db block gets
53 consistent gets
0 physical reads
0 redo size
1444 bytes sent via SQL*Net to client
523 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
15 rows processed
111->内表小于外表
Statistics(in)
----------------------------------------------------------
15 recursive calls
12 db block gets
55 consistent gets
0 physical reads
0 redo size
1450 bytes sent via SQL*Net to client
524 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
15 rows processed
222->内表大于外表
Statistics
----------------------------------------------------------
15 recursive calls
12 db block gets
53 consistent gets
0 physical reads
0 redo size
1434 bytes sent via SQL*Net to client
523 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
1 sorts (memory)
0 sorts (disk)
15 rows processed
从结果来看,效果不是很明显,也许是数据量少的缘故,有待下次再分析,另加有索引情况时
先洗澡睡觉了;