当前位置:网站首页>Mysql database and table building: the difference between utf8 and utf8mb4
Mysql database and table building: the difference between utf8 and utf8mb4
2022-04-23 20:12:00 【My brother is not strong enough to fight】
1) brief introduction
MySQL stay 5.5.3 Then I added this utf8mb4 The coding ,mb4 Namely most bytes 4 It means , Designed to be compatible with four bytes unicode. Fortunately utf8mb4 yes utf8 Superset , In addition to changing the code to utf8mb4 There is no need to make any other conversion . Of course , To save space , In general use utf8 That's enough. .
2) Content description
It said that since utf8 Can save most Chinese characters , Then why use utf8mb4 Well ? original mysql Supported by utf8 The maximum character length of the encoding is 3 byte , If you encounter 4 Byte wide characters will be inserted into the exception . Three bytes UTF-8 The best way to code Unicode Character is a 0xffff, That is to say Unicode The Basic Multilingual plane in (BMP). in other words , Anything that is not in the basic multi text plane Unicode character , Can't use Mysql Of utf8 Character set storage . Include Emoji expression (Emoji It's a special kind Unicode code , Common in ios and android On the cell phone ), And a lot of unusual Chinese characters , And any new Unicode Characters and so on (utf8 The shortcomings of ).
版权声明
本文为[My brother is not strong enough to fight]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210556213956.html
边栏推荐
- Shanda Wangan shooting range experimental platform project - personal record (V)
- kibana 报错 server is not ready yet 可能的原因
- Electron入门教程3 ——进程通信
- R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
- Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
- Esp8266 - beginner level Chapter 1
- nc基础用法1
- MySQL数据库 - 连接查询
- 【目标跟踪】基于帧差法结合卡尔曼滤波实现行人姿态识别附matlab代码
- Leetcode XOR operation
猜你喜欢

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)

Five minutes to show you what JWT is

LeetCode动态规划训练营(1~5天)

【webrtc】Add x264 encoder for CEF/Chromium

Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion

基于pytorch搭建GoogleNet神经网络用于花类识别

Redis cache penetration, cache breakdown, cache avalanche

如何在BNB鏈上創建BEP-20通證

selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT

The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
随机推荐
数据库查询 - 选课系统
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
SIGIR'22 "Microsoft" CTR estimation: using context information to promote feature representation learning
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
LeetCode异或运算
Understanding various team patterns in scrum patterns
The R language uses the timeroc package to calculate the multi time AUC value of survival data without competitive risk, and uses the confint function to calculate the confidence interval value of mul
腾讯邱东洋:深度模型推理加速的术与道
Local call feign interface message 404
Kibana reports an error server is not ready yet. Possible causes
MySQL数据库 - 单表查询(三)
还在用 ListView?使用 AnimatedList 让列表元素动起来
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
【webrtc】Add x264 encoder for CEF/Chromium
Unity 模型整体更改材质
MySQL数据库 - 数据库和表的基本操作(二)
Computing the intersection of two planes in PCL point cloud processing (51)
SIGIR'22「微软」CTR估计:利用上下文信息促进特征表征学习
中金财富公司怎么样,开户安全吗
Database query - course selection system