Showing posts with label SQL Constraints. Show all posts
Showing posts with label SQL Constraints. Show all posts

Tuesday, 22 April 2014

SQL Constraints

SQL Constraints
Constraints are used to limit the type of data that can go into a table.
Constraints can be specified when a table is created (with the CREATE TABLE statement) or after the table is created (with the ALTER TABLE statement).
We will focus on the following constraints:
NOT NULL
UNIQUE
PRIMARY KEY
FOREIGN KEY
CHECK
DEFAULT