The basic function gets a random number, greater than or equal to 0 and less than 1, with 38 digits to the right of the decimal (38-digit precision).
Alternatively, you can get a random Oracle number x, where x is greater than or equal to low and less than high.
取得一个随机数
Alternatively, you can get a random Oracle number x, where x is greater than or equal to low and less than high.
取得一个随机数
SELECT DBMS_RANDOM.VALUE,DBMS_RANDOM.VALUE(1,100) FROM DUAL;取得一组随机数:select r
from ( select rownum r from all_objects where rownum < 50 )
order by dbms_random.value;
select round(dbms_random.value(0,50)) from dual connect by level <=6;
本文介绍如何使用DBMS_RANDOM.VALUE函数获取38位精度的随机数,并通过不同参数实现Oracle环境中的随机数生成,包括指定范围内的随机整数与浮点数。
508

被折叠的 条评论
为什么被折叠?



