文章詳情頁
mysql如何求指定字段數(shù)據(jù)的平均值
瀏覽:122日期:2022-06-12 16:59:55
問題描述
表price,字段category,值55,求平均值字段pi
category, pi55 10055 10556 13055 9555 8059 11555 10155 98
如何計(jì)算字段pi的平均值(category為55的數(shù)據(jù))
問題解答
回答1:select avg(pi) as pi_avg from price where category=55
相關(guān)文章:
1. javascript - sublime快鍵鍵問題2. javascript - immutable配合react提升性能?3. Apache 已經(jīng)把網(wǎng)站根目錄的改為allow from all了,但是服務(wù)器還是不能訪問?4. 配置Apache時,添加對PHP的支持時語法錯誤5. phpstudy8.1支持win11系統(tǒng)嗎?6. css - 寫頁面遇到個布局問題,求大佬們幫解答,在線等,急!~7. vue.js - Vue 如何像Angular.js watch 一樣監(jiān)聽數(shù)據(jù)變化8. javascript - nodejs關(guān)于進(jìn)程間發(fā)送句柄的一點(diǎn)疑問9. 實(shí)現(xiàn)bing搜索工具urlAPI提交10. javascript - 移動端上不能實(shí)現(xiàn)拖拽布局嗎?
排行榜

熱門標(biāo)簽
網(wǎng)公網(wǎng)安備