当前位置:网站首页>Fifteen. Actual combat - MySQL database building table character set and collation
Fifteen. Actual combat - MySQL database building table character set and collation
2022-08-05 03:25:00 【Isn't this more popular than bloggers?】
1. Character set and collation
Character Set
When the database needs to adapt to different languages, it needs to have different character sets. If the character set is not specified, then the default character set of the database will be used. Each character set has its own default collation rules.The default character set of mysql is utf8, and the default collation is utf8_general_ci.Generally, we will also choose the character set as utf-8
Collation
Each character set will have its own collation, and the collation suffix is generally divided into cs, ci
- cs: case sensitive is translated as case sensitive
- ci: case insensitive is translated as case insensitive
Example:
select * from test where column1 like "A%"If we choose cs, then we will choose the beginning of A
If we choose ci, then we will choose the beginning of a or A
In the case of uncertain case, we usually choose ci, which is not sensitive and can choose a little more range
Original: https://blog.csdn.net/aduoge/article/details/116501560
2. The difference between utf8 and utf8mb4:
MySQL added this utf8mb4 encoding after 5.5.3. utf8mb4 is completely backward compatible with utf8. In order to save space, it is usually enough to use utf8.
Original: https://www.fujieace.com/mysql/utf8-utf8mb4.html
边栏推荐
- Getting Started with Kubernetes Networking
- 【软件测试】自动化测试之unittest框架
- Slapped in the face: there are so many testers in a certain department of byte
- 2022高处安装、维护、拆除考试题模拟考试题库及在线模拟考试
- AI + Small Nucleic Acid Drugs | Eleven Completes $22 Million Seed Round Financing
- 语法基础(变量、输入输出、表达式与顺序语句完成情况)
- 告白数字化转型时代,时速云镌刻价值新起点
- 【滤波跟踪】基于matlab无迹卡尔曼滤波惯性导航+DVL组合导航【含Matlab源码 2019期】
- Study Notes-----Left-biased Tree
- 2022-08-04 第六小组 瞒春 学习笔记
猜你喜欢

沃谈小知识 |“远程透传”那点事儿

tree table lookup
![[Qixi Festival] Romantic Tanabata, code teaser.Turn love into a gorgeous three-dimensional scene and surprise her (him)!(send code)](/img/10/dafea90158adf9d43c4f025414fef7.png)
[Qixi Festival] Romantic Tanabata, code teaser.Turn love into a gorgeous three-dimensional scene and surprise her (him)!(send code)

How to Add Category-Specific Widgets in WordPress

【软件测试】自动化测试之unittest框架
![Tencent Cloud [Hiflow] New Era Automation Tool](/img/ac/5c61424f22cd9fed74dcd529fdb6a4.png)
Tencent Cloud [Hiflow] New Era Automation Tool
![[Solved] Unity Coroutine coroutine is not executed effectively](/img/ab/035ef004a561fb98d3dd1d7d8b5618.png)
[Solved] Unity Coroutine coroutine is not executed effectively

IJCAI2022 | DictBert: Pre-trained Language Models with Contrastive Learning for Dictionary Description Knowledge Augmentation

引领数字医学高地,中山医院探索打造未来医院“新范式”

.NET应用程序--Helloworld(C#)
随机推荐
STM32 uses stm32cubemx LL library series tutorial
YYGH-13-Customer Service Center
2022-08-04 第六小组 瞒春 学习笔记
21天学习挑战赛(2)图解设备树的使用
冒泡排序与快速排序
905. 区间选点
Confessing the era of digital transformation, Speed Cloud engraves a new starting point for value
Study Notes-----Left-biased Tree
ffmpeg enumeration decoders, encoders analysis
How to solve the error cannot update secondary snapshot during a parallel operation when the PostgreSQL database uses navicat to open the table structure?
开发Hololens遇到The type or namespace name ‘HandMeshVertex‘ could not be found..
调用阿里云oss和sms服务
用CH341A烧录外挂Flash (W25Q16JV)
The pit of std::string::find return value
[论文笔记] MapReduce: Simplified Data Processing on Large Clusters
In 2022, you still can't "low code"?Data science can also play with Low-Code!
2022.8.4-----leetcode.1403
How to simulate the background API call scene, very detailed!
Call Alibaba Cloud oss and sms services
通过模拟Vite一起深入其工作原理