June 2018
Intermediate to advanced
478 pages
10h 52m
English
The INSERT rule is applicable to the child table and it guarantees that a value can never be inserted into the foreign key of a child table unless a matching value exists in the corresponding primary key of the associated parent table. Any attempt to insert a record into a child table that violates the INSERT rule will result in an SQL0530N error and the INSERT operation will fail.
Remember, this rule is not applicable to the parent table and no data validation occurs when records are added to the parent key of the parent table.
The following diagram shows how a record that conforms to the INSERT rule for a referential constraint is successfully added to the child table:
Read now
Unlock full access