Delete from TableA where aid in
(Select aid from TableA
left outer join TableB
on TableA.bid=TableB.bid
where TableB.bid is null)
差不多是这样的样子,具体语法俺不熟,你自己DEBUG一下。
牛人!成功了