SELECT IFNULL(a, b); 如果a是null 返回b,否则返回a
SELECT IFNULL(null, "RUNOOB");

IFNULL(null, “RUNOOB”)

RUNOOB

SELECT IFNULL("Hello", "RUNOOB");

IFNULL(null, “RUNOOB”)

Hello