用下面的试试
delete from A where exists (select * from B where B.Id=A.Id)意思差不多,语法自己去调整吧!:)