mysql生成随机字符串

select substring(MD5(RAND()),1,20)
原文地址:https://www.cnblogs.com/vijayfly/p/6525722.html