S_pot
SQL_Check제약조건, 숫자 1자 제한 본문
-- grade컬럼 숫자 1자 제한, check제약조건
alter table student
alter column grade numeric(1);
alter table student
add constraint grade_ck check (grade in(1,2,3,4));
'SQL' 카테고리의 다른 글
SQL_SQL과 테이블 구조 (0) | 2021.08.18 |
---|---|
SQL_한글값 insert ??뜰때 (0) | 2021.06.22 |
SQL_외래키(foreign key) (0) | 2021.06.22 |
SQL_Unique제약조건 (0) | 2021.06.22 |
SQL_쿼리문: 기본키설정, not null, (0) | 2021.06.22 |