mysql ifnull 函数

IFNULL(expr1,expr2)
如果 expr1 不是 NULL,IFNULL() 返回 expr1,否则它返回 expr2。

IFNULL()返回一个数字或字符串值,取决于它被使用的上下文环境。

原文地址:https://www.cnblogs.com/lsswudi/p/10946747.html