MySQL學習筆記8:函數查詢

參考表   count()用來統計記錄的條數 mysql> select count(*) from score; mysql> select count(*) from score where stu_id=901;   sum()求和函數 mysql> select sum(grade) from score; mysql> select id,sum(grade) from score wh
相關文章
相關標籤/搜索