当前位置:网站首页>SQL reported an unusual error, which confused the new interns
SQL reported an unusual error, which confused the new interns
2022-06-27 20:16:00 【InfoQ】
Origin of problem
Illegal mix of collations (utf8mb4_general_ci,IMPLICIT) and (utf8mb4_unicode_ci,IMPLICIT) for operation '='
mysql Of utf8 Format and sorting rules
Character set uft8 And uft8mb4
- utf8
- utf8mb4
Sort rule
SELECT * FROM table1 t1
left join table2 on t1.username = t2.username
characteristic
difference
Solution to collation incompatibility
SELECT
u.guid
FROM
`test` t
LEFT JOIN user u ON u.guid = t.guid COLLATE utf8mb4_unicode_ci
WHERE t.state = 1
边栏推荐
- Common shell script commands (III)
- Talk about graduation season
- 最佳实践:优化Postgres查询性能(下)
- Hanoi Tower problem
- 键入网址到网页显示,期间发生了什么?
- Doctoral Dissertation of the University of Toronto - training efficiency and robustness in deep learning
- 这个是和数据采集一样,可以定义一个参数为上个月或者前一天,然后在sql中使用这个参数吗?
- Database transactions
- 【debug】平台工程接口调试
- ABAP-SM30删除前检查
猜你喜欢
Type the URL to the web page display. What happened during this period?
SQL Server - window function - solve the problem of filtering consecutive n records
Hash table - Review
Adding, deleting, modifying and querying MySQL tables (basic)
Linux系统ORACLE 19C OEM监控管理
UE4:Build Configuration和Config的解释
蓄力中台,用友iuap筑牢社会级企业数智化新底座
Linux system Oracle 19C OEM monitoring management
UE4 realizes long press function
字典树(复习)
随机推荐
UE4 realizes long press function
Is the account opening QR code given by CICC securities manager safe? Who can I open an account with?
数仓的字符截取三胞胎:substrb、substr、substring
【精品必读】Linux系统Oracle数据库趣解子查询
Database transactions
PyCharm常用功能 - 断点调试
Pointers and structs
1027 Colors in Mars
On thread safety
UE4: explanation of build configuration and config
SQL报了一个不常见的错误,让新来的实习生懵了
Adding, deleting, modifying and querying MySQL tables (basic)
shell脚本常用命令(三)
通过 Cargo 管理 Rust 项目
redis数据结构
本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献
Pyhton crawls Baidu library text and writes it into word document
[login interface]
1030 Travel Plan
muduo