Change to where id IS NULL That’s it The equal sign cannot be used to determine NULL in MySQL.
where id IS NULL
For details, please see: https://dev.mysql.com/doc/ref...
where id is null
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;
Change to
where id IS NULL
That’s itThe equal sign cannot be used to determine NULL in MySQL.
For details, please see:
https://dev.mysql.com/doc/ref...
where id is null
General update statements, to be on the safe side, first verify the data volume and confirm the update content