DBMS_RANDOM.STRING


Mulai dari Oracle 8.0 mulai diperkenalkan dbms_random yang dapat digunakan untuk memilih/menggenerate data acak, disini akan dibahas dbms_random.string().

dbms_random.string(opt IN CHAR, len IN NUMBER)
RETURN VARCHAR2;

opt seed values:
‘a’,’A’   : alpha characters only (mixed case)
‘l’,’L’    : lower case alpha characters only
‘p’,’P’   : any printable characters
‘u’,’U’   : upper case alpha characters only
‘x’,’X’   : any alpha-numeric characters (upper)

Semoga bermanfaat😀

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s