mysql基本应用命令(三)

汇集函数的使用web 查询学生总数sql select count(*) from student; 查询选修了课程的学生(distinct 去掉重复值)svg select count(distinct sno) from sc; 计算C01号课程的学平生均成绩函数 select avg(dagree) from sc where cno='c01'; 查询选修了C01号课程的学生的最高分和最低
相关文章
相关标签/搜索