Skip to content

EasyConceptPostgreSQL and SQL in practice

What is a foreign key and what does ON DELETE CASCADE do?

What a good answer covers

A foreign key enforces that a value must exist in the referenced table. With ON DELETE CASCADE, deleting the parent row automatically deletes the child rows that reference it.

More on PostgreSQL and SQL in practice

Flashcards for this topic