MySql學習(五)

彙總數據sql 1.彙集函數:運行在行組上,計算和返回單個值的函數函數 Avg()函數:spa select avg(prod_price) AS avg_price from products where vend_id = 1003; Avg()函數只用於單個列,要得到多個列的平均值,必須使用多個Avg()函數code Avg()函數忽略值爲NULL的行blog Count函數:it sele
相關文章
相關標籤/搜索