/ Published in: SQL
To produce a random character from a specific list of characters (for example 'x', 'y' or 'z')
Expand |
Embed | Plain Text
SELECT SUBSTR('xyz',ROUND(DBMS_RANDOM.VALUE(1,3)),1) FROM DUAL; -- where 3 is the length of the string 'xyz'.
You need to login to post a comment.
