Constraints enforce rules at the table/column level — stopping invalid, duplicate, or missing data before it even hits your database.
PRIMARY KEY — Unique identifier for each rowUNIQUE — Ensures all values in a column are differentNOT NULL — Prevents NULL (empty) valuesCHECK — Limits values based on a conditionFOREIGN KEY — Connects records between tables