三叔2017-06-26 10:51:26
Change to where id IS NULL
That’s it
The equal sign cannot be used to determine NULL in MySQL.
For details, please see:
https://dev.mysql.com/doc/ref...
代言2017-06-26 10:51:26
General update statements, to be on the safe side, first verify the data volume and confirm the update content
#update defaultdemo
#set id = 19
select id
from defaultdemo
where id is null;