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刪除。