Du kan göra NULL från tom sträng i MySQL :
SELECT coalesce(NULLIF(email, ''), 'example@sqldat.com') FROM users WHERE id=1000000;
Du kan göra NULL från tom sträng i MySQL :
SELECT coalesce(NULLIF(email, ''), 'example@sqldat.com') FROM users WHERE id=1000000;