-- 'u','U' -返回全是大写的字符串
-- 'l','L' -返回全是小写的字符串
-- 'a','A' -返回大小写结合的字符串
-- 'x','X' -返回全是大写和数字的字符串
create table test_table as SELECT rownum as col_1,DBMS_RANDOM.string('~',5) as col_2,DBMS_RANDOM.string('L',5) as col_3,DBMS_RANDOM.string('A',5) as col_4,DBMS_RANDOM.string('U',5) as col_5,DBMS_RANDOM.string('X',5) as col_6,DBMS_RANDOM.string('P',5) as col_7 from (SELECT level,ROWNUM rn FROM DUAL CONNECT BY ROWNUM <= 123456) 原文链接:https://www.f2er.com/oracle/210436.html