我收到以下错误:归类(latin1_swedish_ci,COERCIBLE)和非法混合(utf8_general_ci,隐含的)操作 'FIND_IN_SET'
Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'find_in_set'
这是我试图执行查询:
SELECT ID FROM xs_user_profiles WHERE ID='' AND FIND_IN_SET('1',site_structure);
我查了这个表的属性,它有字符集UTF8和整理utf8_general_ci。
这适用于我所有的网站,所以我不确定发生了什么问题。
[疑难解答“非法混用排序规则”的错误在mysql中可能重复(http://stackoverflow.com/questions/3029321/troubleshooting-illegal-mix-of-collations-error-in-mysql) – Jocelyn 2016-06-18 07:12:19