MySQL执行函数时报错:Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operation 'find_in_set'
该异常时mysql find_in_set 函数字排序规则不一致原因导致的。
解决方法一:
将find_in_set 函数使用的字段排序规则改成一致这个网上随便可以找到
解决方法二:
指定使用排序规则,如:
SELECT org_id FROM sec_org where FIND_IN_SET(parent_org_id COLLATE utf8mb4_0900_ai_ci,'字符串')>0;