DELETE FROM tableA a
WHERE 0 = (SELECT b.quantity
FROM tableB b
WHERE a.id=b.id)
这是一个示例查询,但我需要说明我是否可以在comparison operator
之后使用WHERE
=。
答案 0 :(得分:0)
试试这个:
DELETE FROM tableA
WHERE Id IN(SELECT id FROM tableB WHERE quantity=0)