日期:2014-05-18  浏览次数:20695 次

新人SQL求助
有表A,B
  先查询到select   a,b   from   A;
要删除表B中B.a=a   and   B.b=b的

------解决方案--------------------
试试这个:
delete B
where exists(select a,b from A where B.a = A.a and B.b = A.b)