ITeye博客

[MySql] Generate random string

SilverRing · 2010-12-01 13:54 · Mysql · 数据库 · Markdown

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

The characters are from the MD5 command (and therefore in the range a-z and 0-9).

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。