Constraints:: SQL UNIQUE Constraint
Constraints:: SQL UNIQUE Constraint
NOT NULL
UNIQUE
PRIMARY KEY
FOREIGN KEY
CHECK
DEFAULT
NOT NULL
The UNIQUE and PRIMARY KEY constraints both provide a guarantee for uniqueness for a
column or set of columns.
can have many UNIQUE constraints per table, but only one PRIMARY KEY constraint per table.
OR
OR
OR
Each table should have a primary key, and each table can have only ONE primary
OR
OR
If you define a CHECK constraint on a single column it allows only certain values for this
column.
The default value will be added to all new records, if no other value is specified.