暂无图片
返回数说广场
Wei.Bu
暂无图片
2021-01-08
使用DBMS_RANDOM包中的方法,执行以下SQL:select dbms_random.方法1, dbms_random.方法2, dbms_random.方法3, dbms_random.方法4 from dual; 输出的结果为: .001376222 YPX1V -.00455029 -1.954E+09 请根据该结果推断出对应的方法名,以下哪个答案是正确的? A、方法1:normal 方法2:string('x',5) 方法3:value 方法4:random B、方法1:value 方法2:string('x',5) 方法3:normal 方法4:random 【正确答案】 C、方法1:random 方法2:string('x',5) 方法3:normal 方法4:value D、方法1:value 方法2:string('x',5) 方法3:random 方法4:normal 【答案解析】dbms_random.value返回的随机数是在0-1之间的小数; dbms_random.string('x',5) 返回5位字符长度的,大写字母与数字的混合字符串; dbms_random.normal 返回的随机数大部分在-5到+5之间的小数; dbms_random.random 返回的随机数是在-power(2,31)到power(2,31)的整数值;
0
暂无图片 0
312
分享

评论

热门数说