1.ABS(numeric_expression):返回指定数值的绝对值 select ABS(-123.25) 返回 123.25
2.CEILING(numeric_expression):返回大于或者等于指定数值表达式的最小整数 select CEILING(-15.6) 返回 -15 select CEILING(15.6) 返回 16
3.FLOOR(numeric_expression):返回大于或者等于指定数值表达式的最小整数 select CEILING(-15.6) 返回 -16 select CEILING(15.6) 返回 15 。与CEILING相反
4.RAND: 返回0到1之间的随机float值
5.ROUND(numeric_expression,length[,function]):将numeric_expression四舍五入到指定的长度或精度。length指定numeric_expression的舍入精度。length必须为tinyint、smallint、或者int。如果length为正数,则将numeric_expression舍入到length指定的小数位数,如果为负数,则将numeric_expression小数点左边部分舍入到length长度
例如:select round(153.456,-2)返回 153.460 select round(153.456,-2)返回200.000
6.SIGN(numeric_expression):当numeric_expression为负数时,返回-1;当numeric_expression为0时,返回0;当numeric_expression为正数时,返回1.
7.SIN(float_expression):以弧度表示float_expression的正弦值
8.SQRT(float_expression):返回float_expression平方根
9.SQUARE(float_expression):返回float_expression平方
10.COT(float_expression):以弧度表示float_expression余切值
11.TAN(float_expression):以弧度表示float_expression正切值
12.POWER(numeric_expression,y):返回numeric_expression的y次幂的值