Sie sind auf Seite 1von 1

Referential Integrity a) Normal Table ( Without Referential Integrity) - Cannot delete a record from Parent table, must delete

the matched record in Child table

b) On Delete Cascade ( can be used for Delete Statement) - Allow user to deletes a record from Parent table and at the same time the matched record in Child Table will be deleted - If user deletes a record from Child table, the matched record in Parent table will not be affected

c) On Update Cascade - If user updates a record in a Parent table, the matched record in Child table also will be updated - Cannot update data in a record from Child Table ( Only involves update in Parent Table)

d) On Delete Set Null and On Delete Set Default - If user deleted a record in a Parent Table, a value in FK field in Child table also deleted automatically Null value will be displayed in FK field - If the deleted record from Parent table is reinserted in the same table, value in FK field in Child table will not appear. Must use Update statement to update a value in the FK field

e) On Delete No Action - Delete statement for a record in Parent table will be rejected

Das könnte Ihnen auch gefallen