日期:2014-05-16 浏览次数:20936 次
如下:
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;