根据每个用户的Id进行分组求和 SELECT * FROM (SELECT SUM(求和的数据) (别名),(字段名(可加可不加)) FROM (表名) GROUP BY user_id ) AS a ORDER BY a.userSum DESC LIMIT 10 java 2023-12-30 43 点赞 0 评论 65 浏览