in a relational database, can we have a table without any relation with the other tables?

后端 未结 5 969
忘掉有多难
忘掉有多难 2021-01-13 12:29

in a relational database, can we have a table without any relation with the other tables?

5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 12:56

    Yes. The way relations are expressed are with foreign keys. If a table you generate has no Foreign keys, and no foreign keys in other tables point to this table, it has no relationships.

    It can still be given a relationship later though so don't worry about shooting yourself in the foot.

提交回复
热议问题