Best Way To Store Multiple Flags In Database

前端 未结 5 789
天涯浪人
天涯浪人 2020-12-16 14:51

I have a web-based application that notifies users of activity on the site via email. Users can choose which kinds of notifcations they want to receive. So far there are abo

5条回答
  •  太阳男子
    2020-12-16 15:35

    Using MySQL?

    Then, SET datatype is the answer.

    "The MySQL SET datatype is stored as an integer value within the MySQL tables, and occupies from one to eight bytes, depending on the number of elements available." - http://dev.mysql.com/tech-resources/articles/mysql-set-datatype.html"

提交回复
热议问题