You could make NULL from empty string in MySQL : SELECT coalesce(NULLIF(email, ''), '[email protected]') FROM users WHERE id=1000000;.
確定! 回上一頁