Since SUCCESS_LOG
is not a real field, you need to use HAVING
to check on it.
HAVING `SUCCESS_LOG` LIKE 'NO'
Though, in this query, I would just check your MAIN.PROCESS
(again). That would probably be more efficient.
WHERE `MAIN`.`PROCESS` = 0
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…