Answer the question
In order to leave comments, you need to log in
How to remove subquery?
There is a request:
UPDATE `table` SET `category` = '0' WHERE `category` = '1' AND `id` NOT IN (SELECT `id` FROM `table` WHERE `category` = '0')
Answer the question
In order to leave comments, you need to log in
Either I didn't understand or
UPDATE `table` SET `category` = '0' WHERE `category` = '1'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question