SELECT SUM(IFNULL(数值字段,0) )
使用mysql统计数据,如果是null值则赋值为0
猜你喜欢
转载自blog.csdn.net/mymbs/article/details/79827913
今日推荐
周排行