我想知道删除父表中的行会发生什么。也就是说,接下来会发生什么,TRIGGER FOR DELETE
会被执行还是Delete Cascade
?
困境:触发器需要从子表中获取数据,但如果在触发器之前执行Delete Cascade
,则Delete trigger
中将无法使用数据。
简而言之,这两者中哪一个是正确的:
ROW DELETED -> DELETE CASCADE LOGIC -> FOR DELETE TRIGGER LOGIC
OR
ROW DELETED -> FOR DELETE TRIGGER LOGIC -> DELETE CASCADE LOGIC