简体   繁体   English

什么是关系数据库上下文中的参照完整性约束?

[英]What is a referential integrity constraint in the context of relational databases?

The way I understand it, in the context of relational databases, a database has referential integrity if all referenced attribute values exist.我理解它的方式,在关系数据库的上下文中,如果所有引用的属性值都存在,则数据库具有引用完整性 In other words, if a value of one attribute references a value of another attribute, then the referenced value must exist.换句话说,如果一个属性的值引用了另一个属性的值,那么被引用的值必须存在。 However, I cannot find any clear definition of referential integrity constraints .但是,我找不到任何明确的引用完整性约束定义。 What exactly is a referential integrity constraint?究竟什么是参照完整性约束?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM