一、问题描述
创建了一个t1表,和t3表做连表模糊查询
模糊查询时报错Illegal mix of collations (utf8mb4_bin,NONE) and (utf8mb4_0900_ai_ci,COERCIBLE) for operation 'like'
二、问题原因
t1表 sales_file_name 字段 排序规则 utf8mb4_0900_ai_ci
t3表 username 字段 排序规则 utf8mb4_general_ci
三、问题解决
字段排序规则保持一致