select round(dbms_random.value()*10) random_value from dual 转载于:https://www.cnblogs.com/YuanFan123/p/6697705.html