ganti nilai nol di dalam kolom mysql
UPDATE `table` SET `somefield`=0 WHERE `somefield` is null
CodeHelper
UPDATE `table` SET `somefield`=0 WHERE `somefield` is null