简体   繁体   English

为什么会出现此错误:在此查询中,操作'='的排序规则(utf8_general_ci,IMPLICIT)和(utf8_bin,NONE)的非法混合?

[英]Why this error: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_bin,NONE) for operation '=', ON THIS QUERY?

Query: 查询:

select *,
       (@page_path = concat(
           @page_path,
           chk_v_application_tree.alias
       )) as path
from chk_v_application_tree 

[Err] 1267 - Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_bin,NONE) for operation '=' [Err] 1267-操作'='的归类(utf8_general_ci,IMPLICIT)和(utf8_bin,NONE)的非法混合

Try: 尝试:

select *,
       (@page_path = concat(
           CONVERT(@page_path USING utf8) COLLATE utf8_bin,
           chk_v_application_tree.alias
       )) as path
from chk_v_application_tree

As you may not mix charset encoding in an CONCAT function like CONCAT(utf8_general_ci, utf8_bin). 由于您可能不会在像CONCAT(utf8_general_ci,utf8_bin)这样的CONCAT函数中混合使用字符集编码。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 mySQL:操作&#39;=&#39;的排序规则(utf8mb4_bin,IMPLICIT)和(utf8_general_ci,COERCIBLE)的非法混合 - mySQL: Illegal mix of collations (utf8mb4_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 如何修复“非法混合排序规则 (utf8_unicode_ci,IMPLICIT) 和 (utf8_general_ci,IMPLICIT) 以进行操作 &#39;=&#39;” - How to fix "Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='" 操作 '=' 的排序规则 (utf8_unicode_ci,IMPLICIT) 和 (utf8_general_ci,IMPLICIT) 的非法混合 - Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' MySQL操作'='的非法混合排序(utf8_unicode_ci,IMPLICIT)和(utf8_general_ci,IMPLICIT) - MySQL Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=' 错误代码:1267。非法混合使用排序规则(utf8_general_ci,IMPLICIT)和(utf8_unicode_ci,IMPLICIT)操作&#39;=&#39; - Error Code: 1267. Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '=' 操作&#39;like&#39;的非法混合排序(utf8mb4_unicode_ci,IMPLICIT)和(utf8_general_ci,COERCIBLE) - Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation 'like' ResultSet.updateRow()为操作&#39;&lt;=&gt;&#39;生成“非法混合排序(latin1_bin,IMPLICIT)和(utf8_general_ci,COERCIBLE)” - ResultSet.updateRow() produces “Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '<=>'” MySQL - 操作&#39;UNION&#39;的非法混合排序(utf8_general_ci,COERCIBLE)和(latin1_swedish_ci,IMPLICIT) - MySQL - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'UNION' 操作&#39;case&#39;的归类(utf8_general_ci,COERCIBLE)和(latin1_swedish_ci,IMPLICIT)的非法混合 - Illegal mix of collations (utf8_general_ci,COERCIBLE) and (latin1_swedish_ci,IMPLICIT) for operation 'case' SQL排序规则(utf8_general_ci,IMPLICIT)和(latin1_swedish_ci,NUMERIC)的非法混合 - SQL Illegal mix of collations (utf8_general_ci,IMPLICIT) and (latin1_swedish_ci,NUMERIC) for operation
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM