mysql學習(二)

彙總函數 函數 1. count 該函數將返回知足 WHERE 條件子句中記錄的個數 spa select count(*) from 表名 where name = ‘ceshi’orm 2.SUM 就如同它的本意同樣 它返回某一列的全部數值的和 select select sum(列名) from 表名統計 3.AVG 能夠返回某一列的平均值 co select avg(列名) from 表名
相關文章
相關標籤/搜索