[quote]select sum(score),[color=red]IFNULL(sum(score),0)[/color] as sumcore from t_user_course as tuc where coursestatus=4 and userid=25 [/quote]