2
Given the sql:
DELETE FROM wgcartarmazens
WHERE (
SELECT artigo
FROM wgcartarmazens as T
INNER JOIN wgcartigos as A ON A.CODIGO=T.ARTIGO
WHERE T.lote='' AND A.TEMLOTE<>0
);
The above query returns me the following error
subquery Returns more than 1 value this is not permitted when the subquery Follows
How can I correct?
@user2478690 our answers are practically the same, but it’s not about opportunism. I only saw your comment after editing the question and posting the answer.
– Tiago César Oliveira