1

询问:

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

[Err] 1267 - 非法混合排序规则 (utf8_general_ci,IMPLICIT) 和 (utf8_bin,NONE) 用于操作 '='

4

1 回答 1

0

尝试:

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

因为您不能在 CONCAT(utf8_general_ci, utf8_bin) 等 CONCAT 函数中混合字符集编码。

于 2012-11-20T09:17:14.367 回答