What does referential integrity mean?

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.

ˌrɛfəˈrɛnʃəl ɪnˈtɛɡrətinounCommon term

Databases & SQL vocabulary · Keys and Constraints

In Turkish: referans bütünlüğü, ilişkisel bütünlük

Also used in: Software Engineering

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

  1. Without foreign keys we lost referential integrity and found 3,000 orphaned order lines.

  2. 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

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: