#query (2)

특정 테이블의 제약사항( not null, fk 과 같은 )의 이름, 테이블명, 소유자의 목록을 보여줍니다.

Below query command queries constraints'(not null, fk) name , owner, table name, column name, and position of the column.


SQL > select * from user_cons_columns where table_name='table_name';

💻 Programming/Oracle 11g

인덱스 목록 조회 ( Querying Index List )

일반유저로 내가 가지고 있는 인덱스 목록을 조회하려면 아래 쿼리를 사용합니다.

Querying index list owned by me.


SQL > select * from user_indexes;

Better to use below query to know which index is from which table because there are so many information on the user_indexes table.

위 쿼리를 실행하면 상당히 많은 양의 정보가 나오게 됩니다. 어느 테이블에 어느 인덱스가 있는지가 궁금하다면 아래 쿼리를 이용하시면 됩니다.

SQL > select index_name, table_name from user_indexes;