1.绝对值:abs()
select abs(-2) value from dual;
2.取整函数(大):ceil()
select ceil(-2.001) value from dual;(-2)
3.取整函数(小):floor()
select floor(-2.001) value from dual;(-3)
4.取整函数(截取):trunc()
select trunc(-2.001) value from dual; (-2)
5.四舍五入:round()
select round(1.234564) value from dual;(1.2346)
6.取平方:Power(m,n)
select power(4,2) value from dual;(16)
7.取平方根:SQRT()
select sqrt(16) value from dual;(4)
8.取随机数:dbms_random(minvalue,maxvalue)
select sys.dbms.random.value(0,1) value from dual;
9.取符号:Sign()
select sign(-3) value from dual;(-)
10,取集合的最大值:greatest(value)
select greatest(-1,3,5,7,9) value from dual;(9)
11.取集合的最小值:least(value)