当前位置:网站首页>SQL报了一个不常见的错误,让新来的实习生懵了
SQL报了一个不常见的错误,让新来的实习生懵了
2022-06-27 18:13:00 【InfoQ】
问题起源
Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='
mysql的utf8格式与排序规则
字符集uft8与uft8mb4
- utf8
- utf8mb4
排序规则
SELECT * FROM table1 t1
left join table2 on t1.username = t2.username
特点
区别
排序规则不兼容的解决方案
SELECT
u.guid
FROM
`test` t
LEFT JOIN user u ON u.guid = t.guid COLLATE utf8mb4_unicode_ci
WHERE t.state = 1
边栏推荐
- 基础数据类型和复杂数据类型
- Determine whether a variable is an array or an object?
- Talk about graduation season
- Question brushing record: easy array (continuously updated)
- 数智化进入“深水区”,数据治理是关键
- Embracing cloud Nativity: Practice of Jiangsu Mobile order center
- 数据库优化
- Adding, deleting, modifying and querying MySQL tables (basic)
- 嵌入式软件开发中必备软件工具
- OpenSSL client programming: SSL session failure caused by an obscure function
猜你喜欢
Data intelligence enters the "deep water area", and data governance is the key
DCC888 :Register Allocation
数据库事务
muduo
海底电缆探测技术总结
MySQL beginner benefits
308. 二维区域和检索 - 可变 线段树/哈希
muduo
[required reading for high-quality products] sub query of Oracle database in Linux system
Bit. Store: long bear market, stable stacking products may become the main theme
随机推荐
SQL Server - window function - solve the problem of filtering consecutive n records
Common shell script commands (III)
多伦多大学博士论文 | 深度学习中的训练效率和鲁棒性
Doctoral Dissertation of the University of Toronto - training efficiency and robustness in deep learning
Redis data structure
通过 Cargo 管理 Rust 项目
Memoirs of actual combat: breaking the border from webshell
Source code analysis of golang map concurrent read / write problem
mime.type文件内容
【bug】联想小新出现问题,你的PIN不可用。
Database index
散列表(Hash)-复习
Character interception triplets of data warehouse: substrb, substr, substring
GIS遥感R语言学习看这里
字典树(复习)
【help】JVM的CPU资源占用过高问题的排查
ABAP essays - interview memories hope that everyone's demand will not increase and the number of people will soar
DCC888 :Register Allocation
Rust 所有权进阶 -- 内存管理
Batch insert data using MySQL bulkloader