distinct 排序多字段问题

来源:互联网 发布:天使投资 知乎 编辑:程序博客网 时间:2024/05/21 10:39

查询投票前10的人中team_id 必须是int 否则数据不准确

select * from kpl  group by team_id order by score desc 该方法group by 必须放在 order by 和 limit之前,不然会报错,并且group by
字段必须是int类型