Home/Databases/Conditional foreign keys and polymorphism in SQL: 4 Methods
Databases

Conditional foreign keys and polymorphism in SQL: 4 Methods

How to model conditional foreign keys: 4 methods to transfer a reference to a polymorphic type to SQL. Explore how PostgreSQL features like JSON support and table inheritance can help.

Conditional foreign keys and polymorphism in SQL: 4 Methods

How to model conditional foreign keys: 4 methods to transfer a reference to a polymorphic type to SQL. Explore how PostgreSQL features like JSON support and table inheritance can help.

LA
Written by
CYBERTEC PostgreSQL

Writes for CYBERTEC PostgreSQL. Part of the Tech Report engineering index.

All articles by Laurenz Albe →