Database design: 1 table or 2?

后端 未结 4 1666
我寻月下人不归
我寻月下人不归 2021-01-23 21:22

I have seen a few database designs where it has all user information in an account table, including password, email, DOB, First Name, Last Name etc.

I have seen some o

4条回答
  •  感情败类
    2021-01-23 21:48

    I believe it is up to you the database designer. As long as it is not difficult for you to work with in the future via server side languages - it is a viable solution.

    I have set up dbs with credentials and sensitive data (encrypted) in one table and all the other stuff in another table. I have also set up dbs that have a table to house all of that data.

    Either way it takes only 1 query statement to get and/or manipulate the data from one or two tables.

提交回复
热议问题