首页 > 其他分享 >153-Illegal mix of collations for operation 'UNION'

153-Illegal mix of collations for operation 'UNION'

时间:2022-12-23 11:34:10浏览次数:46  
标签:153 UNION Illegal collations ci mix operation

使用union all 查询,报错:

Illegal mix of collations for operation 'UNION'

相同字段的编码为 utf8_general_ci 与 utf8_unicode_ci ,就会报Illegal mix of collations for operation “UNION”的错误。 解决1:

CONVERT('ABC' USING utf8mb4)

解决2: 直接修改对应字段的编码

标签:153,UNION,Illegal,collations,ci,mix,operation
From: https://blog.51cto.com/u_14816966/5965285

相关文章