DBMS_Random 隨機數

select dbms_random.value from dual; --產生一個0-1的隨機數 select dbms_random.value(100,0) from dual;--產生一個0-100之間的小數 select dbms_random.normal from dual;--正態分佈隨機數 select dbms_random.string('u',10) from dual --大寫字母 union all select dbms_random.string('U',10) from dual union all select dbms_random.string('l',10) from dual --小寫字母 union all select dbms_random.string('L',10) from dual union all select dbms_random.string('a',10) from dual -- 大小寫混合字母 union all select dbms_random.string('A',10) from dual union all select dbms_random.string('x',10) from dual --大寫 字母數字混合 union all select dbms_random.string('X',10) from dual union all select dbms_random.string('p',10) from dual --特殊字符混合 union all select dbms_random.string('P',10) from dual; select dbms_random.value from dual connect by level<10
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章