Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> DBMS_RANDOM.STRAIN('s' gives non-alpha-numeric characters.
From the package:
FUNCTION string (opt char, len NUMBER)
/* "opt" specifies that the returned string may contain:
'u','U' : upper case alpha characters only
'l','L' : lower case alpha characters only
'a','A' : alpha characters only (mixed case)
'x','X' : any alpha-numeric characters (upper)
'p','P' : any printable characters
*/ RETURN VARCHAR2; -- string of <len> characters (max 60)
So I tried:
SELECT DBMS_RANDOM.STRING('x', 20) FROM Dual;
and received:
DBMS_RANDOM.STRING('X',20)
Brian Received on Fri Feb 16 2001 - 13:17:27 CST
![]() |
![]() |