테이블에 걸려 있는 인덱스와 인덱스컬럼 조회하기(user_indexes, user_ind_columns)
SQL> column column_name format a10
SQL> select a.index_name, a.column_name, b.visibility
2 from USER_IND_COLUMNS a, USER_INDEXES b
3 where a.table_name = 'EMP'
4 and a.index_name = b.index_name
5 order by a.index_name, a.column_name;
INDEX_NAME COLUMN_NAM VISIBILIT
------------------------------ ---------- ---------
IDX_EMP_DEPTNO DEPTNO VISIBLE
IDX_EMP_JOB JOB INVISIBLE
IDX_EMP_SAL SYS_NC0000 VISIBLE
SQL> column column_name format a10
SQL> select a.index_name, a.column_name, b.visibility
2 from USER_IND_COLUMNS a, USER_INDEXES b
3 where a.table_name = 'EMP'
4 and a.index_name = b.index_name
5 order by a.index_name, a.column_name;
INDEX_NAME COLUMN_NAM VISIBILIT
------------------------------ ---------- ---------
IDX_EMP_DEPTNO DEPTNO VISIBLE
IDX_EMP_JOB JOB INVISIBLE
IDX_EMP_SAL SYS_NC0000 VISIBLE
| 12-27 | 2429 | |||
| 12-11 | 1775 | |||
| 53 | 03-15 | 1586 | ||
| 52 | 01-31 | 1677 | ||
| 51 | 01-31 | 2292 | ||
| 50 | 01-31 | 1324 | ||
| 49 | 01-19 | 1636 | ||
| 48 | 01-11 | 1490 | ||
| 47 | 01-03 | 2023 | ||
| 46 | 12-27 | 2429 | ||
| 45 | 12-19 | 1747 | ||
| 44 | 12-14 | 1725 | ||
| 43 | 12-11 | 1775 | ||
| 42 | 12-09 | 1396 | ||
| 41 | 12-01 | 1625 | ||
| 40 | 12-01 | 1799 | ||
| 39 | 12-01 | 1273 | ||
댓글 없음:
댓글 쓰기