SELECT REPLACE(uuid(), _utf8'-', _utf8'') id from table SELECT MD5(uuid()) from table 这两种方式获取的都是不重复的32 uuid