针对第一个表写个删除触发器,使得删除第一个表的同时删除第二个表的数据。create trigger del_tab on table1for deleteasif (select a from deleted)='N'begindelete from table2 where field b=N and c=N end;