1,截取数字函数:
select trunc(2.2342342,5),trunc(2.5234234) from dual;结果:1 2.23423, 2;
2,四舍五入:
select round(-1.0026,3) value from dual;结果:-1.003
select ROUND(12345,-2),ROUND(12345.54621,2),ROUND(-234234.9800234) FROM dual;结果:12300,12345.55,-234235
3,取随机数:
select sys.dbms_random.value(0,10) value from dual;结果:0-10之间的随机数