mysql IFNULL

IFNULL(v1,v2);

其中:如果 v1 不为 NULL,则 IFNULL 函数返回 v1; 否则返回 v2 的结果。

原文地址:https://www.cnblogs.com/zgaspnet/p/11002849.html