日期:2014-05-16  浏览次数:20873 次

mysql 将null转代为0
引用
select sum(score),IFNULL(sum(score),0) as sumcore from t_user_course as tuc where coursestatus=4 and userid=25