#오라클# 테이블 정보 조회하기

               

01 OBJECT 조회

SELECT *

FROM ALL_OBJECTS

WHERE OBJECT_NAME LIKE 'OBJECT명'


02 TABLE 조회

SELECT *

FROM ALL_TABLES

WHERE TABLE_NAME LIKE 'TABLE명'

 

03 SYNONYM 조회

SELECT *

FROM ALL_SYNONYMS

WHERE SYNONYM_NAME = 'SYNONYM명'

 

04 TABLE의 INDEX 정보

SELECT * 

FROM ALL_IND_COLUMNS

WHERE TABLE_NAME = 'TABLE명'

 

05 TABLE의 COLUMN 정보

SELECT * 

FROM ALL_TAB_COLUMNS

WHERE TABLE_NAME = 'TABLE명'

 

06 TABLE COMMENT 정보

SELECT * 

FROM ALL_TAB_COMMENTS

WHERE TABLE_NAME = '명'

 

07 COLUMN COMMENT 정보

SELECT *

FROM ALL_COL_COMMENTS

WHERE TABLE_NAME = 'TABLE명'