Is normalizing the gender table going too far?

前端 未结 7 1186
陌清茗
陌清茗 2021-02-08 14:32

I am not a database guy, but am trying to clean up another database. So my question is would normalizing the gender table be going too far?

User table:
userid in         


        
7条回答
  •  隐瞒了意图╮
    2021-02-08 15:07

    Yes. I think that You can use enum in code and bind eventuatly to it.

    null - unknow ; 0 - male ; 1 - female;

    or you can use bool type to define this

    null - unknow; true - male; false - female

提交回复
热议问题