Answer the question
In order to leave comments, you need to log in
How to get FALSE on UPDATE in MySQL if query failed due to invalid conditions?
Good afternoon.
I work in MySQL 5.6. When I do
UPDATE `table` SET `value` = 'new_value' WHERE `id` = 0
if there is no row with id = 0, then TRUE is returned, although the update obviously did not occur. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question