Detecting cascaded delete -
03-15-2011
, 04:03 PM
Suppose ChildTable has a foreign key reference to ParentTable with the
constraint ON DELETE CASCADE. Is there any way to distinguish between
the deletion of a row in ChildTable as a result of executing:
DELETE FROM ChildTable WHERE......
and the deletion of a row in ChildTable as a result of a delete
cascaded from ParentTable? |