mysql заменить пустую строку на нуле
UPDATE
TableName
SET
column01 = CASE column01 WHEN '' THEN NULL ELSE column01 END
Colorful Corncrake
UPDATE
TableName
SET
column01 = CASE column01 WHEN '' THEN NULL ELSE column01 END