mysql sum() 数据不存在返回null的问题

下面语句会返回0

SELECT COALESCE(SUM(column),0)

FROM table

WHERE ...

原文地址:https://www.cnblogs.com/pcx105/p/15067449.html