Generate a random string in MySQL

select SUBSTRING(MD5(RAND()) from 1 for 6) as randomstring;


Source - https://jonlabelle.com/snippets/view/sql/generate-a-random-string-in-mysql

Comments

Popular posts from this blog

Should you always have null checks?

Identity Terms and Definitions