当前位置:网站首页>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
边栏推荐
- nc基础用法2
- filebeat、logstash配置安装
- R language uses econocrats package to create microeconomic or macroeconomic map, visualize indifference function indifference curve, customize calculation intersection, and customize the parameters of
- Kibana reports an error server is not ready yet. Possible causes
- Shanda Wangan shooting range experimental platform project - personal record (V)
- 使用 WPAD/PAC 和 JScript在win11中进行远程代码执行3
- MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
- R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线、自定义计算交叉点、自定义配置indifference函数的参数丰富可视化效果
- MFC obtains local IP (used more in network communication)
- Leetcode dynamic planning training camp (1-5 days)
猜你喜欢
Deep learning -- Summary of Feature Engineering
STM32基础知识
PHP reference manual string (7.2000 words)
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
STM32 Basics
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Unity创建超写实三维场景的一般步骤
[report] Microsoft: application of deep learning methods in speech enhancement
【webrtc】Add x264 encoder for CEF/Chromium
Unity general steps for creating a hyper realistic 3D scene
随机推荐
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Record: call mapper to report null pointer Foreach > the usage of not removing repetition;
Five minutes to show you what JWT is
Still using listview? Use animatedlist to make list elements move
nc基础用法4
R语言使用timeROC包计算无竞争风险情况下的生存资料多时间AUC值、使用confint函数计算无竞争风险情况下的生存资料多时间AUC指标的置信区间值
R language ggplot2 visualization: ggplot2 visualizes the scatter diagram and uses geom_ mark_ The ellipse function adds ellipses around data points of data clusters or data groups for annotation
Deep learning -- Summary of Feature Engineering
渤海期货这家公司怎么样。期货开户办理安全?
IIS data conversion problem: 16bit to 24bit
程序设计语言基础(2)
php参考手册String(7.2千字)
Esp8266 - beginner level Chapter 1
LeetCode异或运算
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(七)
R语言survival包coxph函数构建cox回归模型、ggrisk包ggrisk函数和two_scatter函数可视化Cox回归的风险评分图、解读风险评分图、基于LIRI数据集(基因数据集)
MFC obtains local IP (used more in network communication)
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行1
还在用 ListView?使用 AnimatedList 让列表元素动起来
Vericrypt file hard disk encryption tutorial