Integrity Constraint
A rule the relational database enforces to maintain data consistency.
Integrity constraints are restrictions on what data is allowed in the database. The classic types are primary key (uniqueness and non-null), foreign key (referential integrity), uniqueness constraints, not-null constraints, and domain constraints (e.g., a column only accepts values between 1 and 100). A database can declare these rules and then guarantee they're never violated, regardless of the operation performed.
This was a key difference between relational databases and earlier navigation systems: in a navigation system, it was the programmer's responsibility to ensure consistency through pointer correctness and logical sequencing. In a relational database, the database itself could enforce the rules. This dramatically reduced programmer error and made data more trustworthy. Integrity constraints remain central to database design today.