A handy little SQL statement

A handy little SQL statement

Hold on Cowboy

This blog post is pretty old. Be careful with the information you find in here. It's likely dead, dying, or wildly inaccurate.

Have a look at the following SQL

SET @salt=SUBSTRING(MD5(RAND()),-20);This will set a variable called `@salt` that has a random string of 20 characters.