bitsCN.com MySql最简单的触发器例子 如下: [sql] DROP TRIGGER IF EXISTS t_afterupdate_on_tab1; CREATE TRIGGER t_afterupdate_on_tab1 AFTER UPDATE ON tab1 FOR EACH ROW BEGIN delete from tab2 where old.status=0 and pid=old.id; END; 登录后复制 bitsCN.com