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.
PreviousWhat is the difference between INNER JOIN and LEFT JOIN?Next What does MVCC do in PostgreSQL?