3,494
社区成员




-- orgaddr 创建一个全局索引 , part_index 是分区字段 取值为:0~49 50个分区
-- 该表没有主键。part_index 没有建索引
select count(*) from tbl_mo_part_01 where part_index=0 and orgaddr='8615000000000'
COUNT(*)
----------
26
Elapsed: 00:00:00.01
Execution Plan
----------------------------------------------------------
Plan hash value: 463358375
----------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
----------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 17 | 61 (0)| 00:00:01 | | |
| 1 | SORT AGGREGATE | | 1 | 17 | | | | |
|* 2 | TABLE ACCESS BY GLOBAL INDEX ROWID| TBL_MO_PART_01 | 13 | 221 | 61 (0)| 00:00:01 | 1 | 1 |
|* 3 | INDEX RANGE SCAN | MO_INX_PT_01 | 69 | | 3 (0)| 00:00:01 | | |
----------------------------------------------------------------------------------------------------------------------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - filter("PART_INDEX"=0)
3 - access("ORGADDR"='8615000000000')
Statistics
----------------------------------------------------------
1 recursive calls
0 db block gets
28 consistent gets
0 physical reads
0 redo size
530 bytes sent via SQL*Net to client
524 bytes received via SQL*Net from client
2 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
1 rows processed