当前位置:网站首页>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
边栏推荐
- Simple description of linked list and simple implementation of code
- STM32 uses stm32cubemx LL library series tutorial
- ASP.NET应用程序--Hello World
- A small tool to transfer files using QR code - QFileTrans 1.2.0.1
- After the large pixel panorama is completed, what are the promotion methods?
- Use SuperMap iDesktopX data migration tool to migrate ArcGIS data
- Open-Falcon of operation and maintenance monitoring system
- Never put off till tomorrow what you can put - house lease management system based on the SSM
- 静态方法获取配置文件数据
- Likou - preorder traversal, inorder traversal, postorder traversal of binary tree
猜你喜欢
Never put off till tomorrow what you can put - house lease management system based on the SSM
Open-Falcon of operation and maintenance monitoring system
【 genius_platform software platform development 】 : seventy-six vs the preprocessor definitions written cow force!!!!!!!!!!(in the other groups conding personnel told so cow force configuration to can
Beyond YOLO5-Face | YOLO-FaceV2 officially open source Trick+ academic point full
public static <T> List<T> asList(T... a) 原型是怎么回事?
QT MV\MVC structure
Is your data safe in this hyperconnected world?
Leading the highland of digital medicine, Zhongshan Hospital explores to create a "new paradigm" for future hospitals
Everyone in China said data, you need to focus on core characteristic is what?
How Jin Cang database correctness verification platform installation file
随机推荐
Developing Hololens encountered The type or namespace name 'HandMeshVertex' could not be found..
静态方法获取配置文件数据
调用阿里云oss和sms服务
惨遭打脸:字节某部门竟有这么多测试员
冰蝎V4.0攻击来袭,安全狗产品可全面检测
QT language file production
Cybersecurity and the Metaverse: Identifying Weak Links
2022.8.4-----leetcode.1403
【Daily Training】1403. Minimum Subsequence in Non-Increasing Order
Details such as compiling pretreatment
In 2022, you still can't "low code"?Data science can also play with Low-Code!
leetcode - symmetric binary tree
ffmpeg 像素格式基础知识
QT: The Magical QVarient
shell脚本:for循环与while循环
The usage of try...catch and finally in js
rpc-remote procedure call demo
On governance and innovation, the 2022 OpenAtom Global Open Source Summit OpenAnolis sub-forum came to a successful conclusion
用Unity发布APP到Hololens2无坑教程
你要的七夕文案,已为您整理好!