Bạn có thể tạo NULL từ chuỗi trống trong MySQL:
SELECT coalesce(NULLIF(email, ''), 'example@sqldat.com') FROM users WHERE id=1000000;
Bạn có thể tạo NULL từ chuỗi trống trong MySQL:
SELECT coalesce(NULLIF(email, ''), 'example@sqldat.com') FROM users WHERE id=1000000;