Skip to content

Instantly share code, notes, and snippets.

@0xRoch
Created March 17, 2011 10:17
Show Gist options
  • Save 0xRoch/874107 to your computer and use it in GitHub Desktop.
Save 0xRoch/874107 to your computer and use it in GitHub Desktop.
How to generate a random string in MySQL
SELECT SUBSTRING(MD5(RAND()) FROM 1 FOR 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment