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.

Did this help you out? It took me a few days to piece together all this information together, I hope this saves you some time (who knows, maybe the future me will be thankful I wrote this down). Let me know your thoughts. shanestillwell@gmail.com