当前位置: 代码迷 >> Java Web开发 >> 新人SQL
  详细解决方案

新人SQL

热度:166   发布时间:2016-04-17 13:39:36.0
新人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)
  相关解决方案