조건을 만족해야만 데이터를 넣을 수 있는 속성
| 있어야 함 | 중복 | 예시 |
|---|
| 1) primary key | ㅇ | x | 아이디 |
| 2) not null | ㅇ | ㅇ | 비밀번호 |
특정 조건에 어떠한 제약 조건이 걸려있는지 알 수 있는 방법
select * from information_schema.TABLE_CONSTRAINTS;
ex) table name이 pk_two_test인 것 (조건 추가)
select * from information_schema.TABLE_CONSTRAINTS where TABLE_NAME = 'pk_two_test';