CREATE TRIGGER 名3 ON A
FOR delete
AS
delete B where exists (select 1 from deleted where Id1=b.Id1 and id2=b.id2)