MySQLの空の文字列からNULLを作成できます: SELECT coalesce(NULLIF(email, ''), 'example@sqldat.com') FROM users WHERE id=1000000;