프로그래밍/Oracle
[Oracle] 테이블 정의서
eunki
2022. 6. 1. 20:48
728x90
1. 테이블에 대한 정의서 출력 - 테이블명은 반드시 대문자로 작성
select *
from dba_tab_comments
where table_name = '테이블명';
2. 컬럼에 대한 정의서 출력
select *
from dba_col_comments
where table_name = '컬럼명';
3. 테이블 정의서 생성
comment on table 테이블명 is '테이블 설명';
4. 컬럼 정의서 생성
comment on column 테이블명.컬럼명 is '컬럼 설명';
728x90