CS/데이터베이스
sql constraints
동 캄
2022. 1. 9. 14:43
반응형
constraints 방법들
1.not null -- not null을 이용
2. key constraints -- primary key or unique를 이용
3. attribute constraints -- check()를 이용 (단, check 안에 서브쿼리를 사용할 수 없다.)
4. tuple based constraints -- check()안에 attribute의 값을 제한 ex) Sid<>'123'
반응형