Enum
Learn what you can do with the enum data type in PostgreSQL.
We'll cover the following...
We'll cover the following...
Relational database
The enum data type has been added to PostgreSQL to make it easier to support migrations from MySQL. The proper relational design would use a reference table and a foreign key instead:
In this setup, the table color lists available colors to choose from, and the cars table registers the availability of a model from a brand in a given color. It’s possible to make ...