mysql平均值函数
时间: 2023-10-10 18:08:11 浏览: 104
MySQL中的平均值函数是AVG()函数。它可以用来计算指定字段的平均值,并在统计时忽略NULL值。例如,要计算mdz_questionnaire_judge_member表中学生成绩的平均值,可以使用以下SQL语句:
SELECT AVG(score) FROM mdz_questionnaire_judge_member;
这将返回学生成绩的平均值。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [学习使用MySQL 求平均值函数AVG](https://blog.csdn.net/guo_qiangqiang/article/details/123890569)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [MySQL数据库---常用统计函数(统计,平均值,求和,最大值,最小值)](https://blog.csdn.net/weixin_49324123/article/details/115790953)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文