1/3
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
fully NULL
foreign key is a simple or composite foreign key in which all columns are NULL
.
Referential integrity
is a relational rule that requires foreign key values are either NULL
or match primary key value.
RESTRICT
rejects an insert, update, or delete that violates referential integrity.
CASCADE
propagates primary key changes to foreign keys.
If a primary key is deleted, rows containing matching foreign keys are deleted. If a primary key is updated, matching foreign keys are updated to the same value.
RESTRICT
, SET NULL
, and SET DEFAULT
apply to primary key update and delete, and foreign key insert and update.
applies to primary key update and delete only.