Created
July 26, 2013 14:05
-
-
Save cbmeeks/6089123 to your computer and use it in GitHub Desktop.
Random String in DB2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || | |
CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) || | |
CHR( INT(RAND()*26) + 65) || CHR( INT(RAND()*26) + 65) | |
from SOMETABLE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment