在关系数据库中,我们可以有一个表与其他表没有任何关系吗? [英] in a relational database, can we have a table without any relation with the other tables?

查看:209
本文介绍了在关系数据库中,我们可以有一个表与其他表没有任何关系吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在关系数据库中,我们可以有一张与其他表格无任何关系的表格吗?

解决方案

是的。关系的表达方式是用外键。如果您生成的表没有外键,并且其他表中的外键不指向此表,则表示它没有任何关系。



它仍然可以给予关系虽然如此,不用担心自己在脚下射击。


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

解决方案

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.

这篇关于在关系数据库中,我们可以有一个表与其他表没有任何关系吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆