sum

sum(money),无记录,返回null
只有null记录,返回null
混合null和有值记录,忽略null记录
最好 ifnull(sum(money),0)

猜你喜欢

转载自blog.csdn.net/kobexzf/article/details/84794432
sum