新人SQL求助有表A,B先查询到selecta,bfromA要删除表B中B.aaandB.bb的[解决办法]试试这个:delete Bwhere
新人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)
新人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)