referential

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