Skip to main content

Constraints Overview

Learn Constraints Overview (Database Fundamentals, MySQL) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Introduction Constraints are rules attached to columns or tables that the database enforces on every write: PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, DEFAULT and CHECK (enforced from MySQL 8.0.16).

More lessons in Database Fundamentals