LOCALITY:表明分区索引是LOCAL的还是GLOBAL的。
--创建分区索引:
create index IDX_MGR_BASE_MGR on T_PM_MGR_BASE (MGR_CODE) LOCAL parallel 16 nologging ;
SQL> select * from T_PM_MGR_BASE where data_date=20131012 and mgr_code='03319';
184 rows selected.
Execution Plan
----------------------------------------------------------
Plan hash value: 949292481
-----------------------------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop |
-----------------------------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 195 | 29250 | 196 (0)| 00:00:03 | |
创建本地索引和全局索引
最新推荐文章于 2022-10-15 16:47:18 发布