How to Store Multiple Options selected by User in a Table

前端 未结 3 1758
感动是毒
感动是毒 2021-01-23 14:50

So I want my users to be able to restrict who may contact them.

There are several factors they should be able to filter, including Age (e.g. Must be between 18 - 29), in

3条回答
  •  长发绾君心
    2021-01-23 15:43

    A DB column (at least theorethically) should NOT hold multiple values. Unfortunately, there are some programmers that store multiple values in a single column (values separated by comma for examples) - those programmers (in most cases) destroy the concept of DB and SQL.

    I suggest you to read about Database Normalization to get a start in organizing your tables. And, do your best to achieve the Codd's Third Normal Form

提交回复
热议问题