Mysql sql函数IFNULL

IFNULL(expr1,expr2)
当expr1不为空返回expr1,否则返回exp2。
例如:IFNULL(score,0)如果score不为空返回score,否则返回0。
发布了59 篇原创文章 · 获赞 18 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/weixin_40575457/article/details/89178051
今日推荐