SQL查詢的藝術學習筆記--聚合函數的應用

use seldata select * from sys.tables --聚合函數 --sum() 函數(求和) --語法:select sum(column_name) from table_name select SUM(sal) from teacher where sex='男' --查詢男教師工資總和 select * from teacher order by sex select
相關文章
相關標籤/搜索