When we need to use 1-to-1 relationship in database design?

后端 未结 4 729
眼角桃花
眼角桃花 2020-12-02 00:45

When do we need to use a 1-to-1 relationship in database design? In my opinion, if two tables are in a 1-to-1 relationship, they can be combined into one table. Is this true

4条回答
  •  一向
    一向 (楼主)
    2020-12-02 01:16

    One reason would be to put frequently accessed data in one table and extremely rarely accessed data in another table. It would run faster and save some memory.

    But I would have to have my arm twisted hard before I would do it.

提交回复
热议问题