表記錄查詢之查詢(二)

group by+字段 / 字段序號 sum(JS) 一類名字的JS的分數總和 where 是分組前過濾,having是分組後過濾 having可以替換where count(name) 統計個數 sum(Js) / count(Js) 平均值 AVG(Js) 平均值 where (ifnull(Js,0)+ifnull(Django,0)>280; 遇到null轉化爲0 count(*) 統計所
相關文章
相關標籤/搜索