Is there a way to make MySQL cause some kind of error when doing UPDATE and there no rows matching condition? UPDATE returns affected rows, and it will be 0 if there were no matching rows, however it will also be 0 if UPDATE simply did not change anything. So is there a way to know that row being updated does not exist without using additional query?
Is there a way to make MySQL cause some kind of error when doing
Share
No. Given your exact question, there is no way to know what exactly the 0 means without an additional query.