Are circular references acceptable in database?

前端 未结 8 1944
梦毁少年i
梦毁少年i 2020-12-08 09:50

When are circular references acceptable in database?

Theoretical and practical, any help is appreciated.

8条回答
  •  [愿得一人]
    2020-12-08 10:36

    rarely i run across a 1:1 relationship that is necessary and imposes a circular relationship

    note that the foreign-key fields in such a relationship must be nullable, otherwise you can never delete rows from the tables

提交回复
热议问题