mysql 将null转代为0

引用
select sum(score), IFNULL(sum(score),0) as sumcore from t_user_course as tuc where coursestatus=4 and userid=25

猜你喜欢

转载自baalwolf.iteye.com/blog/1341426