Skip to content
Advertisement

Which the best way to use inheritance of tables in postgreSQL?

i want to use inheritance in my database (PostgreSQL) so i wrote this code but finally i found there are inherits in PostgreSQL

with

or i use INHERITS of postgreSQL

Advertisement

Answer

With inheritance you cannot have globally unique constraints. If that doesn’t bother you, you can use the feature.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement