当前位置:网站首页>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
边栏推荐
- antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
- Esp8266 - beginner level Chapter 1
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
- Database query - course selection system
- Comment créer un pass BEP - 20 sur la chaîne BNB
- Design of library management database system
- Deep learning -- Summary of Feature Engineering
- Audio editing generation software
- Electron入门教程3 ——进程通信
- [2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
猜你喜欢
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
@Mapperscan and @ mapper
Building googlenet neural network based on pytorch for flower recognition
【webrtc】Add x264 encoder for CEF/Chromium
Fundamentals of programming language (2)
Openharmony open source developer growth plan, looking for new open source forces that change the world!
aqs的学习
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
Distinction between pointer array and array pointer
Leetcode XOR operation
随机推荐
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
Kibana reports an error server is not ready yet. Possible causes
Remote code execution in Win 11 using wpad / PAC and JScript 1
Record: call mapper to report null pointer Foreach > the usage of not removing repetition;
R语言使用caret包的preProcess函数进行数据预处理:对所有的数据列进行BoxCox变换处理(将非正态分布数据列转换为正态分布数据、不可以处理负数)、设置method参数为BoxCox
SRS deployment
Remote code execution in Win 11 using wpad / PAC and JScript 3
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线、自定义计算交叉点、自定义配置indifference函数的参数丰富可视化效果
MySQL数据库 - 单表查询(二)
@Mapperscan and @ mapper
Grafana shares links with variable parameters
Kubernetes introduction to mastery - ktconnect (full name: kubernetes toolkit connect) is a small tool based on kubernetes environment to improve the efficiency of local test joint debugging.
Speex Wiener filter and rewriting of hypergeometric distribution
STM32基础知识
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
WordPress plug-in: WP CHINA Yes solution to slow domestic access to the official website
Building googlenet neural network based on pytorch for flower recognition
Command - sudo