日常

随机数
String s = UUID.randomUUID().toString();
        System.out.println(s);
        //生成的字符串 含有 - 我们可以使用replaceAll 去掉 -
        String s1 = s.replaceAll("-", "");
        System.out.println(s1);
SELECT  REPLACE(UUID(),'-','')
posted @ 2023-09-15 21:35  微风抚秀发  阅读(16)  评论(0)    收藏  举报