Generate random string in MySQL

Submitted by:Andery Smith

Date added:16 October, 2012

Category:MySQL

MySQL code to generate random string

Tags: random string

Code Snippet:

SELECT SUBSTRING(MD5(RAND()) FROM 1 FOR 6) AS RandomString
 
 

Comments