查询:
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)
答案 0 :(得分: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)中混合使用charset编码。