select `type`,count(1) as counts from `api_count` group by `type`
(order by counts DESC)
select `type`, //查询某个列 count(1) as counts //相同值的数量统计到(as)某列中 from `api_count` //来自某个表 group by `type` //根据(by)一定的规则进行分组(Group)
select `type`,count(1) as counts from `api_count` group by `type`
(order by counts DESC)
select `type`, //查询某个列 count(1) as counts //相同值的数量统计到(as)某列中 from `api_count` //来自某个表 group by `type` //根据(by)一定的规则进行分组(Group)
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。