Referential integrity
Meaning in databases & SQL, with examples
In databases & SQL, referential integrity means: The rule that every reference between tables must point to a row that really exists, so there are no orders for missing customers.
In Turkish: referans bütünlüğü, ilişkisel bütünlük
How it is used
Enforced by foreign keys. When it breaks, you get 'orphan' or 'orphaned' rows. It is a common topic in design reviews and data quality reports, and the main argument for keeping foreign keys in the database instead of only in code.
Example sentences
Without foreign keys we lost referential integrity and found 3,000 orphaned order lines.
The database enforces referential integrity, so you can't delete a category that still has products.
Common collocations
- enforce referential integrity
- break referential integrity
- orphaned rows
- data integrity
Related terms
This word in other fields
The same English word can have a different meaning in another field:
More terms: Keys and Constraints
Practise with graded reading
Reading at the right level is the fastest way to make new words stick. Pick free English books by level:
