referential is referring to the referential integrity concept of relationel databases.
referential is referring to the referential integrity concept of relationel databases.
Simply put, referential integrity means that when a field in a table refers to a corresponding field in another table, that corresponding record must exist.
Typically, but not necessarily, referential integrity is a one-to-many relationship. A table hold many records with a field that refers to the same record in another table. The field in the first table is called a foreign key
, the field in the second table is called the primary key
.
Referential integrity is a relational database concept which states that table relationships must always be consistent. In other words, any foreign key field must exist in the referenced table, and any changes in the referenced table must be applied to all foreign keys, or not at all.