SUM函数仅适用于数字类型数据。语法如下:SUM([DISTINCT] 列名),示例:SELECT SUM(SALARY) FROM EMPLOYEE_PAY_TBL计算工资总和。SELECT SUM(DISTINCT SALARY) FROM EMPLOYEE_PAY_TBL计算去重后的工资总和。