mysql中分组如何去重

2025-03-24 00:16:14
推荐回答(1个)
回答1:

order by cont ->order by count(*) select count(*) as cont,ctt_id from tmp GROUP BY ctt_id order by count(*) desc limit 0,20