728x90

예전 카페에서 폐지 공지가 와서 자료를 옮겨 놓습니다.

 

1. 테이블 설명 조회

 

column comments format a50
select table_name, comments from user_tab_comments where table_name like 'SOME%';

 

2. 컬럼설명 조회

 

column comments format a50
select table_name, column_name, comments from user_col_comments where table_name like 'SOME%';

3. 전체 테이블/컬럼 설명 조회

SELECT A.TABLE_NAME
, A.COMMENTS AS TB_DESC
, B.COLUMN_NAME
, B.COMMENTS AS COL_DESC
FROM USER_TAB_COMMENTS A 
, USER_COL_COMMENTS B

728x90

+ Recent posts