更新时间:2023-11-26 17:10:52
使用从文档中:
如果expr1不为NULL,则IFNULL()返回expr1;否则返回expr2. IFNULL()返回数字或字符串值,具体取决于使用它的上下文.
If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2. IFNULL() returns a numeric or string value, depending on the context in which it is used.