IBM DB2 日常维护汇总(七)
135.AVG()
返回一组数值的平均值.
SELECTAVG(SALARY)FROMBSEMPMS;
136.CORR(),CORRELATION()
返回一对数值的关系系数.
SELECTCORRELATION(SALARY,BONUS)FROMBSEMPMS;
137.COUNT()
返回一组行或值的个数.
SELECTCOUNT(*)FROMBSEMPMS;
138.COVAR(),COVARIANCE()
返回一对数值的协方差.
SELECTCOVAR(SALARY,BONUS)FROMBSEMPMS;
139.MAX()
返回一组数值中的最大值.
SELECTMAX(SALARY)FROMBSEMPMS;
140.MIN()
返回一组数值中的最小值.
SELECTMIN(SALARY)FROMBSEMPMS;
141.STDDEV()
返回一组数值的标准偏差.
SELECTSTDDEV(SALARY)FROMBSEMPMS;
142.SUM()
返回一组数据的和.
SELECTSUM(SALARY)FROMBSEMPMS;
143.VAR(),VARIANCE()
返回一组数值的方差.
SELECTVARIANCE(SALARY)FROMBSEMPMS;
144.ABS(),ABSVAL()
返回参数的绝对值.
SELECTABS(-3.4)FROMBSEMPMS;
145.ACOS()
返回参数的反余弦值.
SELECTACOS(0.9)FROMBSEMPMS;
146.ASCII()
返回整数参数最左边的字符的ASCII码.
SELECTASCII('R')FROMBSEMPMS;
147.ASIN()
返回用弧度表示的角度的参数的反正弦函数.
SELECTASIN(0.9)FROMBSEMPMS;
148.ATAN()
返回参数的反正切值,该参数用弧度表示的角度的参数.
SELECTATAN(0.9)FROMBSEMPMS;
149.ATAN2()
返回用弧度表示的角度的X和Y坐标的反正切值.
SELECTATAN2(0.5,0.9)FROMBSEMPMS;
150.BIGINT()
返回整型常量中的数字或字符串的64位整数表示.
SELECTBIGINT(EMP_NO)FROMBSEMPMS;
151.CEILING()ORCEIL()
返回比参数大或等于参数的最小的整数值.
SELECTCEILING(3.56)FROMBSEMPMS;
SELECTCEIL(4.67)FROMBSEMPMS;
152.CHAR()
返回日期时间型,字符串,整数,十进制或双精度浮点数的字符串表示.
SELECTCHAR(SALARY,',')FROMBSEMPMS;
153.CHR()
返回具有由参数指定的ASCII码的字符.
SELECTCHAR(167)FROMBSEMPMS;