Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

foreign key

a column in a child table whose values must match the primary key of an existing row in a parent table.

A little more detail

Foreign keys enforce referential integrity between tables. When configured with constraints like ON DELETE CASCADE or ON DELETE RESTRICT, the database engine prevents orphan records from entering the database and manages cascading updates or deletions automatically.

See it in practice

These lessons pair the idea with examples you can change and run.