예전 카페에서 폐지 공지가 와서 자료를 옮겨 놓습니다.
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
'database > oracle' 카테고리의 다른 글
안좋아보이는 페이징 처리 구문 10월 24일 내용정리 (09.10.24) (0) | 2025.05.19 |
---|---|
os 인증 접속 10월17~18일 연습내용 (09.10.17) (0) | 2025.05.19 |
proc 예외처리 (09.09.15) (0) | 2025.05.19 |
시퀀스 (2009.09.14) (0) | 2025.05.10 |
오라클 함수-집합 함수, 분석함수, 정규표현식(10g) (2008.09.10 ) (0) | 2025.05.10 |