Database Design - Multiple Lookup/Enum Tables or One Large Table?

前端 未结 4 1583
别跟我提以往
别跟我提以往 2020-12-15 22:17

I have many tables that use Lookup/Enum references for most of their column values. For example:
Person Table - PersonID | RaceCode | HairColorCode | HairStyleC

4条回答
  •  攒了一身酷
    2020-12-15 22:52

    Without knowing more about the application or requirements I would recommend having one table for each code type. IMO the database design would be more clear and self documenting to have foreign keys for each type of code you have.

提交回复
热议问题