在进行表关联查询,特别是跨库时,特别容易报这个错,原因是关联的两张表对应的排序规则不一致。
在navicate中右键表,查看对象信息


在join时,添加COLLATE属性,比如a表关联b表,a表的排序规则为utf8mb4_unicode_ci,b表排序规则为utf8mb4_general_ci,直接使用a.xxx_id = b.xxx_id就会报类似这种错误,我们将两张表的排序规则进行统一。

a.xxx_id = b.xxx_id COLLATE utf8mb4_unicode_ci

或者

 a.xxx_id COLLATE utf8mb4_general_ci = b.xxx_id

Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci相关推荐

  1. Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT

    Mysql 报错: `Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_c ...

  2. Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT)

    @[TOC](Error 1267 Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IM ...

  3. Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operat

    原因:两张表有不同的排序规则 一个排序规则是默认是utf8mb4_unicode_ci,另一张表的排序规则是utf8mb4_general_ci,它说您在操作中使用了非法的排序规则组合=. 解决方法: ...

  4. Illegal mix of collations (utf8mb4_0900_ai_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operat

    多表关联查询报错先看报错结果 我想通过这个org_post_user_name 表和这个has 的复合表进行查询 通过这个条件关联在一起查询 where  ssorg.org = has.qwe 然后 ...

  5. mysql Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) fo...

    错误:"Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for ...

  6. Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_0900_ai_ci,IMPLICIT) for operat

    今天在做一个左链接的时候遇到这个问题,网上很多网人说修改表的编码什么的也都试了,但是问题变化接二连三,问题记录如下: select t.card_num,t.uid,tt.business,ttt.n ...

  7. Mysql报错解决:Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE)

    原因: 查询后发现是因为临时表的字符集是 CHARSET=utf8mb4 COLLATE= utf8mb4_unicode_ci而此字符集是继承于数据库的, 查看发现库的字符集是 让实施同事查看后发现 ...

  8. Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation '=

    问题描述:MySQL进行字符串比较时发生错误: SELECT a.equ_no, b.fullCode FROM equipment a, ( SELECT t.*, getEquTypeFullCo ...

  9. 【Java】application run failed Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and

    springboot 启动时报这个错:application run failed Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and ...

最新文章

  1. 哪种脚本语言最适合你!
  2. Hadoop伪分布式运行案例
  3. python3.82版本安装_CentOS7下安装Python3和Python2并存
  4. 自定义有多个按钮节点的SliderView
  5. 解决ajax回调函数无返回值得问题
  6. 免费的html空间,免费HTML网页空间(每月200 GB 流量托管静态网页超简单)
  7. 【知识图谱】一文全览,ICLR 2020 上的知识图谱研究
  8. 7-14 到底是不是太胖了 (10 分)
  9. oracle sql 分区查询语句_Oracle分区表跨分区查询数据为空
  10. Springboot URL Rewrite
  11. Aerial为苹果而生,一款炫酷的Mac屏幕保护程序
  12. U1C3 介绍SketchEngine和Web语料库研究
  13. vscode为python文件添加模板
  14. SCCM通过PXE部署系统蓝屏Recovery
  15. 【Zookeeper】查看注册信息命令
  16. Mysql数据库查询去除重复_mysql数据库如何去重复数据
  17. 数字化转型再下一城,数字孪生厂商优锘科技宣布完成超3亿元融资
  18. 在微信公众号中写html代码吗,微信公众号内容如何利用html编辑?
  19. 三十八、Fluent融化凝固模型参数设置依据
  20. tflite模型测试

热门文章

  1. VirtualBox 4.3“不能为虚拟电脑 打开一个新任务”解决方案 - 转
  2. CORS - 引入预检请求的动机是什么?
  3. 连接两个std :: vector
  4. 从其他文件夹导入文件
  5. 七彩虹智能主板设置U盘启动教程
  6. 获取 HttpServletRequest 所有参数,获取所有Httpsession中参数
  7. 终结者2显示天网服务器,《终结者2:审判日》天网觉醒秘测开服公告
  8. jframe大小根据组件变化_Swing JDialog容器和JFrame容器使用教程
  9. 单麦克纳姆轮的速度分解
  10. 问答| car-like robot为何需要设置多个坐标系?