SQL生成随机字符串
条评论生成随机数字
1 | select CONCAT(FLOOR(RAND()*500000000000000000 + 500000000000000000) ,’’) |
生成随机字符
1 | select substring(MD5(RAND()),1,18) |
- 本文链接:https://www.ofcoder.com/2021/04/11/sql/SQL%E7%94%9F%E6%88%90%E9%9A%8F%E6%9C%BA%E5%AD%97%E7%AC%A6%E4%B8%B2/
- 版权声明:Copyright © 并发笔记 - ofcoder.com. Author by far.
分享