标签: mysql triggers
我有两个表TABLEA和TABLEB,TABLEB有一个列TABLEB.idtablea引用了TABLEA列ID,我设置了ON DELETE TO CASCADE在TABLEB。
TABLEA
TABLEB
TABLEB.idtablea
ON DELETE TO CASCADE
我在TABLEA BEFORE DELETE AND AFTER DELETE上有两个触发器,它们都使用TABLEB中的信息存储。
BEFORE DELETE AND AFTER DELETE
触发器BEFORE AND AFTER DELETE的代码是否会在CASCADE DELETE发生之前执行?
BEFORE AND AFTER DELETE
CASCADE DELETE