MySQL ENUM type vs join tables

后端 未结 5 1562
北恋
北恋 2020-11-27 13:04

My requirement

A table needs to maintain a status column.

This column represents one of 5 states.


initial desi

5条回答
  •  日久生厌
    2020-11-27 13:38

    Here is article about speed comparison of enum. Maybe it gives some hints. IMHO it should be limited to a use in fixed list of strings ("Yes/No", "Child/Adult") that with 99% probability doesn't change in the future.

提交回复
热议问题