Skip to content

Glossary: PostgreSQL for Developers

foreign key constraint

Also written: foreign key, REFERENCES, foreign keys

A rule, written REFERENCES, that a value must exist as a key in another table, so orders.customer_id must point at a real customer.

Where the book teaches it

Related terms

referential integrityON DELETEconstraint