SELECT ROUND(AVG(userpoint), 1) AS "userpoint" FROM t_shopgoods round 函数的使用就是四舍五入 round (* n)其中n表示要保留几位小数 从0开始 avg 求平均值