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)

 

相关文章:

  • 2022-12-23
  • 2022-01-13
  • 2021-11-07
  • 2022-02-12
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2021-11-11
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案