I want to replace 0's in mysql table with 'NULL'. I have read that querying the following way would replace 'NULL' with 0
SELECT COALESCE(null_column, 0) AS null_column FROM whatever;
But how to the other way?
update `whatever` set `null_column` = null where null_column = 0;
Just use an UPDATE query, it's way faster: UPDATE table SET value=NULL WHERE value=0.
'' is not the same as NULL