Lesson 12: Maximize Database Integrity and Performance Flashcards
Constraints
Defined rules specified for the data in a database table
DEFAULT Constraint
Used to provide a default value for a column. If no other value is specified, the default value will be added to the column in a new row.
CHECK Column Constraint
Used to limit the value range that can be placed in a column. Only certain values can be added to the column.
CHECK Table Constraint
A CHECK constraint on a table limits the values based on values in other columns in the row.
NULL Constraint
The column default is to allow NULL values. A row can be added to the table without a value in the column.
NOT NULL Constraint
A rule that enforces a column to not accept NULL values. A row cannot be added to the table without a value in the column.
Primary Key (PK) Constraint
The unique column in a table.
Index
An index is used to help the query process performance when retrieving data.