- A NOT NULL constraint prohibits a database value from being null.
- A unique constraint prohibits multiple rows from having the same value in the same column or combination of columns but allows some values to be null.
- A primary key constraint combines a NOT NULL constraint and a unique constraint in a single declaration. It prohibits multiple rows from having the same value in the same column or combination of columns and prohibits values from being null.
- A foreign key constraint requires values in one table to match values in another table.
- A check constraint requires a value in the database to comply with a specified condition.
- A REF column by definition references an object in another object type or in a relational table. A REF constraint lets you further describe the relationship between the REF column and the object it references.
| [오라클 DB 스터디] Sequence / Synonym (0) | 2025.04.23 |
|---|---|
| [오라클 DB 스터디] View (0) | 2025.04.22 |
| [오라클 DB 스터디] 커서(Cursor) - 2 (0) | 2025.03.30 |
| [오라클 DB 스터디] 커서(Cursor) - 1 (0) | 2025.03.23 |
| [오라클 DB 스터디] PL/SQL - 조건/반복문 (0) | 2025.03.02 |
댓글 영역