WITH n(n) AS (
SELECT 1 UNION
ALL SELECT n+1 FROM n WHERE n<62
)
SELECT LEFT(
(SELECT ''+SUBSTRING('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZqwertyuiopasdfghjklzxcvbnm',n,1)
FROM n ORDER BY NEWID() FOR XML PATH('')),25)
//result//
//zV0hOY7bpqNJcAMjUakg1BnyX
No comments:
Post a Comment