产生6位随机密码

SELECT CAST(FLOOR(RAND()*10) AS VARCHAR(1)) +
       CAST(FLOOR(RAND()*10) AS VARCHAR(1)) +
       CAST(FLOOR(RAND()*10) AS VARCHAR(1)) +
       CAST(FLOOR(RAND()*10) AS VARCHAR(1)) +
       CAST(FLOOR(RAND()*10) AS VARCHAR(1)) +
       CAST(FLOOR(RAND()*10) AS VARCHAR(1))

你可能感兴趣的:(产生6位随机密码)