1.count函数
该函数将返回满足where条件子句中记录的个数
select count(*) from 表名
或者是这样写:
select count(*) from 表名 where 条件
2.sum函数,返回某一列的所有数值的和
select sum(字段名) from 表名
3.avg函数,它可以返回某一列的平均值
select avg(字段名) from 表名
4.max函数,它可以返回某一列中的最大数值
select max(字段名) from 表名
5.min函数,它可以返回一列中的最小数值
select min(字段名) from 表名
6.variance(方差)函数,求某一列的方差
select variance(字段名) from 表名
7.stddev函数,求某一列数值的标准差
select stddev(字段名) from 表名
8. add_months函数,该函数的功能是将给定的日期增加一个月
select add_months(日期字段) from 表名
9.last_day函数,该函数可以返回指定月份的最后一天
select last_day(日期字段名) from 表名