当前位置:网站首页>MySQL character set
MySQL character set
2022-06-27 23:39:00 【dhjywe】
The following is an introduction mysql Four levels of character sets and comparison rules
1. Server level
mysql> show variables like '%server';
+----------------------+-------------+
| Variable_name | Value |
+----------------------+-------------+
| character_set_server | utf8mb4 | Server character set
| collation_server | utf8mb4_bin | Server comparison rule
+----------------------+-------------+
2 rows in set (0.00 sec)
The above parameters can be used at runtime set Statement to modify , It can also be configured in the configuration file
[server]
character_set_server=utf8mb4
collation_server=utf8mb4_bin
2. Database level
mysql> show variables like '%database';
+------------------------+-------------+
| Variable_name | Value |
+------------------------+-------------+
| character_set_database | utf8mb4 |
| collation_database | utf8mb4_bin |
| skip_show_database | OFF |
+------------------------+-------------+
3 rows in set (0.00 sec)
The above parameters can only be specified when creating the database , It can't be modified
3. Table level
The character set at the table level is used when the table is created without specifying the character set at the library level , If specified, use the character set at the time of creation , You can also modify the character set of the table later
alter table character set Character set name collation Compare the rules
4. Column level
Similarly, you can specify the character set of the column when creating the table , Use tables without making them , It can also be modified later
边栏推荐
- Typora 1.2.5等版本下载
- pytorch 入门指南
- 系统学习+主动探索,是最舒适的入门学习方式!
- 文献综述如何挑选文献进行阅读,比如我的检索结果有200多篇根本看不完,如何进行文献挑选呢?...
- Discuz small fish game wind shadow legend business gbk+utf8 version template /dz game website template
- webserver流程图——搞懂webserver各模块间调用关系
- Discuz淘宝客网站模板/迪恩淘宝客购物风格商业版模板
- SQL中IS NOT NULL与!=NULL的区别
- To build a "strong core" in Nansha, the first IC Nansha conference was held in Nansha
- Swing UI——容器(一)
猜你喜欢

Feign implements path escape through custom annotations

Structure de stockage des graphiques

通过 MQTT 检测对象和传输图像

Working at home is more tiring than going to work at the company?

ASP.NET仓库进销存ERP管理系统源码 ERP小程序源码

c语言之字符串数组

Windows环境下的ELK——Logstash+Mysql(4)

Discuz小鱼游戏风影传说商业GBK+UTF8版模板/DZ游戏网站模板

webserver流程图——搞懂webserver各模块间调用关系

Sentinel
随机推荐
mysql 字符集
Feign通过自定义注解实现路径的转义
小程序referer
获取基因有效长度的N种方法
[try to hack] kill evaluation
CUDA error:out of memory caused by insufficient video memory of 6G graphics card
webserver流程图——搞懂webserver各模块间调用关系
Online JSON to plaintext tool
Prediction of benign / malignant breast tumors (logistic regression classifier)
vmware虚拟机桥接连通
Course strategy sharing plan of Zhejiang University
Discuz淘宝客网站模板/迪恩淘宝客购物风格商业版模板
虽然TCGA数据库有33种癌症
virtualbox扩展动态磁盘大小的坑
Applet referer
Swing UI container (I)
手把手教你移植 tinyriscv 到FPGA上
浙江大学课程攻略共享计划
撰写外文时怎样引用中文文献?
【Try to Hack】veil-evasion免杀