인덱스에 대한 정보이며 class_of에 대한 인덱스가 생성되어 있다.
속성명 |
데이터 타입 |
설명 |
---|---|---|
class_of |
_db_class |
인덱스가 속한 클래스 |
index_name |
varchar(255) |
인덱스명 |
is_unique |
INTEGER |
고유 인덱스(unique index)이면 1, 그렇지 않으면 0 |
key_count |
INTEGER |
키를 구성하는 속성의 개수 |
key_attrs |
SEQUENCE OF _db_index_key |
키를 구성하는 속성들 |
is_reverse |
INTEGER |
역 인덱스(reverse index)이면 1, 그렇지 않으면 0 |
is_primary_key |
INTEGER |
기본 키이면 1, 그렇지 않으면 0 |
is_foreign_key |
INTEGER |
외래 키이면 1, 그렇지 않으면 0 |
다음 예제에서는 클래스에 속하는 인덱스명을 검색한다.
SELECT class_of.class_name, index_name
FROM _db_index
ORDER BY 1;
class_of.class_name index_name
============================================
'_db_attribute' 'i__db_attribute_class_of_attr_name'
'_db_auth' 'i__db_auth_grantee'
'_db_class' 'i__db_class_class_name'
'_db_domain' 'i__db_domain_object_of'
'_db_index' 'i__db_index_class_of'
'_db_index_key' 'i__db_index_key_index_of'
'_db_meth_arg' 'i__db_meth_arg_meth_sig_of'
'_db_meth_file' 'i__db_meth_file_class_of'
'_db_meth_sig' 'i__db_meth_sig_meth_of'
'_db_method' 'i__db_method_class_of_meth_name'
'_db_partition' 'i__db_partition_class_of_pname'
'_db_query_spec' 'i__db_query_spec_class_of'
'_db_stored_procedure' 'u__db_stored_procedure_sp_name'
'_db_stored_procedure_args' 'i__db_stored_procedure_args_sp_name'
'athlete' 'pk_athlete_code'
'db_serial' 'pk_db_serial_name'
'db_user' 'i_db_user_name'
'event' 'pk_event_code'
'game' 'pk_game_host_year_event_code_athlete_code'
'game' 'fk_game_event_code'
'game' 'fk_game_athlete_code'
'history' 'pk_history_event_code_athlete'
'nation' 'pk_nation_code'
'olympic' 'pk_olympic_host_year'
'participant' 'pk_participant_host_year_nation_code'
'participant' 'fk_participant_host_year'
'participant' 'fk_participant_nation_code'
'record' 'pk_record_host_year_event_code_athlete_code_medal'
'stadium' 'pk_stadium_code'