新人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)
发布时间: 2012-03-14 12:01:13 作者: rapoo
新人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)