Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci,IMPLICIT) for operat
原因:两张表有不同的排序规则
一个排序规则是默认是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相关推荐
- 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 ...
- 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 ...
- 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 ...
- Illegal mix of collations (utf8mb4_unicode_ci,IMPLICIT) and (utf8mb4_general_ci
在进行表关联查询,特别是跨库时,特别容易报这个错,原因是关联的两张表对应的排序规则不一致. 在navicate中右键表,查看对象信息 在join时,添加COLLATE属性,比如a表关联b表,a表的排序 ...
- 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 ...
- mysql general error,mysql General error: 1267 Illegal mix of collations错误
在项目迁移之后一个视图的访问出现了问题,报了mysql的1267错误,具体报错信息就是 SQLSTATE[HY000]: General error: 1267 Illegal mix of coll ...
- Illegal mix of collations (XXX) and (XXX) for operation ‘XXX’
问题描述: mybatis使用INSTR的时候报错(数据库为MySQL)-- Illegal mix of collations (XXX) and (XXX) for operation 'XXX' ...
- MySQL replication illegal mix of collations
MySQL replication case 一则 转载:http://www.vmcd.org/2013/09/mysql-replication-case-%E4%B8%80%E5%88%99/ ...
- 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. ...
最新文章
- CSS布局之-水平垂直居中
- matlab bp结果,Matlab如何处理BP网络每次运行结果不一样这个问题
- MSP430程序库五SPI同步串行通信
- 基于迭代次数和分类准确率的两种排序
- 十面阿里,七面头条,你猜我进阿里没?
- 计算机的诊断策略服务怎么打开,win7系统使用诊断策略服务提示“未运行”怎么解决...
- 如何制作可以在 MaxCompute 上使用的 crcmod
- Android Studio导入工程的正确姿势
- 暴露的全局方法_期末考试快到了,这4种错误的考试复习方法,越复习越差劲!...
- 转载 实践与分享:Windows 7怎么获取TrustedInstaller权限【图文教程】
- gulp教程之gulp-autoprefixer
- Struts 2的拦截器(Interceptor)总结
- 时间管理专题_软件篇03
- 我们来判断一个php函数是否被定义
- 机器学习入门实战——线性支持向量机实战digits数据集
- PaaS建设有什么意义,能够给企业带来哪些价值?
- 酷炫的可视化数据地图都是咋做的?10分钟学会
- 03-鸢尾花分类问题(120个样本的实验)
- php安装和环境配置
- JavaScript单选框选择操作