问题描述:
批量插入数据,生产的UUID需要去掉中间的“-”。
注意问题:
当mysql字符集编码为uftmp4,查询replace(uuid(),"-","")一致
使用uft8mb4则不会一致
replace(convert(uuid() using utf8mb4), '-','')
bug:Function UUID() and REPLACE(), can't work together
参考官网:https://bugs.mysql.com/bug.php?id=12774