SQL Constraints

Constraints are used to limit the type of data that can go into a table and it can be specified when a table is created or after the table is created.

Below given are some important constraints

PRIMARY KEY
FOREIGN KEY
NOT NULL
UNIQUE
CHECK
DEFAULT