The table containing the foreign key is called the referencing or child table, and the table containing the candidate key is called the referenced or parent table.
- SET NULL : Sets the column value to NULL when you delete the parent table row.
- RESTRICT : RESTRICT causes you can not delete a given parent row if a child row exists that references the value for that parent row.
- NO ACTION : NO ACTION and RESTRICT are very much alike. when an UPDATE or DELETE statement is executed on the referenced table, the DBMS verifies at the end of the statement execution that none of the referential relationships are violated. in short child row no concern if parent row delete or update.
Comments
Post a Comment