Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='
时间: 2023-10-12 18:07:06 浏览: 108
Mysql中的排序规则utf8_unicode_ci、utf8_general_ci的区别总结
当出现"Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '='"这个错误时,它表示在进行比较操作时,使用了不同的字符集排序规则。这种情况下,你可以使用转换函数来解决这个问题。具体来说,你可以使用CONVERT函数将字符集转换为相同的字符集,然后再进行比较操作。例如,可以使用以下语句解决这个问题:CONVERT(b.fullCode USING utf8) COLLATE utf8_unicode_ci。另外,你也可以考虑删除还没有产生数据的表,并重新建立UTF-8表,以确保字符集一致。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [ Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT](https://blog.csdn.net/u012965373/article/details/82595470)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [freeradius 默认生成表转utf8](https://download.csdn.net/download/tokyohuang123/10653691)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文