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號課程的學生的最高分和最低
相關文章
相關標籤/搜索