There are 2 types of constraints in SQL.
1. Column Level Constraints : Limits only column level data
2. Table Level Constraints: Limits total table data.
NOT NULL - Ensures that a column cannot have a NULL value.
UNIQUE - Ensures that all values in a column are different.
PRIMARY KEY - A combination of a NOT NULL and UNIQUE.
FOREIGN KEY - Uniquely identifies a row/record in another table.