mysql基礎(3)-高級查詢

聚合函數 count 返回查詢結果的條數 max 返回查詢結果的最大值 min 返回查詢結果的最小值 sum 返回查詢結果的和 avg 返回查詢結果的平均值   統計分數大於等於90的人數: mysql> select count(*) from new_student         -> where score >="90";      使用distinct剔除字段值重複的條數 mysql> 
相關文章
相關標籤/搜索