mysql如何分组查询每组后n条记录

2025-03-10 11:24:51
推荐回答(1个)
回答1:

select sum(c1) a,c2 from table group by c2 having a<3 order by c1