Glossary — in plain language

Foreign key


In plain English

A foreign key is a rule that says “a value in this column must exist in another table”. It links a child row to its parent (for example, an order row must point to a real customer).

Why it matters

Foreign keys protect data integrity, but they require an index on the referencing column for good performance and add locking on the parent. Missing FK indexes are a frequent cause of slow deletes and lock contention.

Was this helpful?

← Browse the full glossary