数据库中生成UUID的方式

mysql而言:使用UUID()函数生成类似:106a41e0-caf2-11e8-b4a8-3c970e1d56f5的32位字符串,使用REPLACE(UUID(),'-','')替换成106a41e0caf211e8b4a83c970e1d56f5格式;

DB2中可以使用SELECT hex (RAND ())|| hex (RAND ()) as uuid FROM SYSIBM.SYSDUMMY1;来生成

原文地址:https://www.cnblogs.com/dingcx/p/9756844.html