它的查询:
hr@ORCL> ed Wrote file afiedt.buf 1 select a.index_name,b.num_rows, 2 b.blocks,a.clustering_factor 3 from user_indexes a,user_tables b 4 where index_name in ('JOB_ID_PK','DEPT_ID_PK') and 5* a.table_name=b.table_name 6 hr@ORCL> / INDEX_NAME NUM_ROWS BLOCKS CLUSTERING_FACTOR ------------------------------ ---------- ---------- ----------------- DEPT_ID_PK 27 5 1 JOB_ID_PK 19 5 1
它的意义:
索引并不一定总是合适的访问方法、如果力图重建表来使索引有一个好的聚簇因子、那只是浪费时间