Are relational integrity and referential integrity the same thing?

。_饼干妹妹 提交于 2019-12-13 05:18:57

问题


I found the same definition for referential and relational integrity. Are they the same? I have researched the two terms separately but cannot find any good definitions.


回答1:


Yes, they are the same thing. The term "Referential Integrity" is used much more though.

Referential Integrity relates to Foreign Keys in a Relational DB. For a table to exhibit Referential Integrity, the Foreign Key must either be null or reference an existing PK value in the related table.



来源:https://stackoverflow.com/questions/23604353/are-relational-integrity-and-referential-integrity-the-same-thing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!