Sqlserver:create trigger tr_Aon A for delete as begin delete B from B,deleted D where B.id=D.idendOracle:Create Or Replace Trigger tr_AAfter Delete On AFor Each RowBegin Delete From B Where id=:Old.id;End;假设主键为 ID
上面的不错,可以试试,他回答了我就不说了