1) 테이블 주석문 달기
COMMENT ON TABLE 테이블명
IS '주석문내용';
2) 실습
select *
from user_tab_comments;
create table tbl_jikwon
(sano number
,saname Nvarchar2(10) not null
,salary number(6) default 100 not null
,comm number(5)
,constraint PK_tbl_jikwon_sano primary key(sano)
);
COMMENT ON TABLE tbl_jikwon
IS '우리회사 사원들의 정보가 들어있는 테이블';
1) 칼럼 주석문 달기
comment on column 테이블명.칼럼명;
2) 실습
comment on column tbl_jikwon.sano is '사원번호 primary key';
comment on column tbl_jikwon.saname is '사원명';
comment on column tbl_jikwon.salary is '기본급여 기본값은 100';
comment on column tbl_jikwon.comm is '수당 null 허락함';
select *
from user_col_comments
where table_name = 'TBL_JIKWON';