发布网友 发布时间:2022-04-26 21:37
共3个回答
热心网友 时间:2022-04-10 17:03
select uid,count(result) from xxx group by uid
热心网友 时间:2022-04-10 18:21
select uid,id,result from table order by uid,id追问这个明显不对啊,我要查询的是不同uid对应的result结果为y的多少排序。追答select uid,count(result) from table group by uid order by uid
确实没听明白
热心网友 时间:2022-04-10 19:55
先进行计数 SELECT uid , COUNT(*) FROM xxx GROUP BY uid