在A表中写一个触发器after insert后在触发器里面写你要执行的操作不好意思,现在手头没有例子只有一个更新的例子你看看create or replace trigger trigger_test2after insert on test2for each rowdeclare
aa int;
wrong_no exception;beginselect count(*) into aa from test3 where xm_id=:new.xm_id;if aa=0 thenraise wrong_no;end if;EXCEPTIONwhen wrong_no t