delete ll from A as ll,B as rr where ll.a1=rr.b1 and ll.a2=rr.b2 and ll.a3=rr.b3
delete ll from B as rr,A as ll where ll.a1=rr.b1 and ll.a2=rr.b2 and ll.a3=rr.b3
我也調試過
select a.a1 into #ab from a,b where a.a1=b.b1 and a.a2=b.b2 and a.a3=b.b3
delete a where a1 in (select a1 from #ab)
delete b where b1 in (select a1 from #ab)
這樣一定行的﹗﹗我調試過﹗﹗