6.3. SQL Constraintsï
Does something automatically
Prevents from duplicating information
Prevents from loss of integrity
6.3.1. NOT NULLï
Ensures that a column cannot have a
NULLvalue
6.3.2. UNIQUEï
Ensures that all values in a column are different
6.3.3. PRIMARY KEYï
Uniquely identifies each row in a table
A combination of a
NOT NULLandUNIQUE
6.3.4. FOREIGN KEYï
Uniquely identifies a row/record in another table
6.3.5. CHECKï
Ensures that all values in a column satisfies a specific condition
6.3.6. DEFAULTï
Sets a default value for a column when no value is specified
6.3.7. INDEXï
Used to create and retrieve data from the database very quickly
Analog to notebook calendar tabs