Types of Constraints:
- NOT NULL enforces not to accept NULL values
- UNIQUE assures that the data is unique in the column (including one NULL).
- PRIMARY KEY uniquely identifies each record in the table without allowing NULL.
- FOREIGN KEY constraints the data to be inserted that is available in table's column it points to.
- CHECK is used to limit the value range that can be placed in that column.
- DEFAULT is used to insert a default value to all new records, if no value is specified.
No comments:
Post a Comment