sql数学函数

来源:互联网 发布:淘宝店长一个月多少钱 编辑:程序博客网 时间:2024/05/23 11:51

函数 参数 功能
ASIN、ACOS、ATAN (float_expr) 求float_expr的反正弦、反余弦、反正切
ATN2 (float_expr1,float_expr2) 求float_expr1/float_expr2的反正切
SIN、COS、TAN、COT (float_expr) 求float_expr的正弦、余弦、正切
DEGREES (numeric_expr) 将弧度转换为度
RADIANS (numeric_expr) 将度转换为弧度
EXP (float_expr) 求float_expr的指数值
POWER (numeric_expr,y) 求numeric_expr的y次方
SQRT (float_expr) 求float_expr的平方根
LOG (float_expr) 求float_expr的自然对数
LOGIO (float_expr) 求float_expr以10为底的对数
ABS (numeric_expr) 求numeric_expr的绝对值
GEILING (numeric_expr) 返回大于等于numeric_expr的最小整数
FLOOR (numeric_expr) 返回小于等于numeric_expr的最大整数
RAND ({seed}) 返回0到1之间的随机浮点数,可能使用整数表达式指定其初值
PI () 返回常数3.141592653589793
ROUND (numeric_expr,length) 将numeric_expr小数点后的值四舍五入,保留的小数位数为length
SIGN (numeric_expr) numeric_expr的值为正数、0或负数时分别返回1、0、-1数值

原创粉丝点击