原因:两张表有不同的排序规则

一个排序规则是默认是utf8mb4_unicode_ci,另一张表的排序规则是utf8mb4_general_ci,它说您在操作中使用了非法的排序规则组合=。

解决方法:

所以你需要设置排序规则。例如:

WHERE tableA.field COLLATE utf8mb4_general_ci = tableB.field

总结:

如果没有表格的相关信息,这是最好的伪代码形式。可以解决当前问题,指定排序规则,让两张表排序规则相同。

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

  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. MySQL:Illegal mix of collations (utf8_general_ci,COERCIBLE) and (gbk_chinese_ci,IMPLICIT) for operat

    MySQL:Illegal mix of collations (utf8_general_ci,COERCIBLE) and (gbk_chinese_ci,IMPLICIT) for operat ...

  4. Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci

    在进行表关联查询,特别是跨库时,特别容易报这个错,原因是关联的两张表对应的排序规则不一致. 在navicate中右键表,查看对象信息 在join时,添加COLLATE属性,比如a表关联b表,a表的排序 ...

  5. 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 ...

  6. mysql general error,mysql General error: 1267 Illegal mix of collations错误​

    在项目迁移之后一个视图的访问出现了问题,报了mysql的1267错误,具体报错信息就是 SQLSTATE[HY000]: General error: 1267 Illegal mix of coll ...

  7. Illegal mix of collations (XXX) and (XXX) for operation ‘XXX’

    问题描述: mybatis使用INSTR的时候报错(数据库为MySQL)-- Illegal mix of collations (XXX) and (XXX) for operation 'XXX' ...

  8. MySQL replication illegal mix of collations

    MySQL replication case 一则 转载:http://www.vmcd.org/2013/09/mysql-replication-case-%E4%B8%80%E5%88%99/ ...

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

    1.问题 今天又在mysql中遇到了,吐血. 2.解决方案 SQL最后加上 COLLATE utf8mb4_unicode_ci SELECT t2.cust_id as cust_id_ex,t1. ...

最新文章

  1. CSS布局之-水平垂直居中
  2. matlab bp结果,Matlab如何处理BP网络每次运行结果不一样这个问题
  3. MSP430程序库五SPI同步串行通信
  4. 基于迭代次数和分类准确率的两种排序
  5. 十面阿里,七面头条,你猜我进阿里没?
  6. 计算机的诊断策略服务怎么打开,win7系统使用诊断策略服务提示“未运行”怎么解决...
  7. 如何制作可以在 MaxCompute 上使用的 crcmod
  8. Android Studio导入工程的正确姿势
  9. 暴露的全局方法_期末考试快到了,这4种错误的考试复习方法,越复习越差劲!...
  10. 转载 实践与分享:Windows 7怎么获取TrustedInstaller权限【图文教程】
  11. gulp教程之gulp-autoprefixer
  12. Struts 2的拦截器(Interceptor)总结
  13. 时间管理专题_软件篇03
  14. 我们来判断一个php函数是否被定义
  15. 机器学习入门实战——线性支持向量机实战digits数据集
  16. PaaS建设有什么意义,能够给企业带来哪些价值?
  17. 酷炫的可视化数据地图都是咋做的?10分钟学会
  18. 03-鸢尾花分类问题(120个样本的实验)
  19. php安装和环境配置
  20. JavaScript单选框选择操作

热门文章

  1. 关于修改ico图片位深度的方法
  2. android11用石墨文档,轻协作 | 石墨文档 for Android 版轻体验
  3. 微软官方原版win7(64位/32位)旗舰版系统下载【适合所有品牌】
  4. Android5.0后外置SDCard读写
  5. 1051: 电报加密
  6. spacemacs email layer
  7. 神经网络与深度学习期末考试满分过题库!
  8. 什么是SPU和SKU
  9. 飞腾cpu服务器浪潮信息,浪潮发布国产飞腾CPU服务器
  10. Rust:用问号 ?操作符简化错误信息的判断