当前位置:网站首页>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
边栏推荐
猜你喜欢
电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!
第一性原理(最优解理论)
【蓝桥杯集训100题】scratch数字计算 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第16题
Introduction to quantitative trading
This kind of people began to be robbed by VC with a monthly salary of 80000 yuan
Discuz small fish game wind shadow legend business gbk+utf8 version template /dz game website template
fiddler 监听不到接口怎么办
vivado 如何添加时序约束
Online JSON to plaintext tool
【剑指Offer】47. 礼物的最大价值
随机推荐
How to set the enterprise wechat group robots to send messages regularly?
企业架构师面试的100个问题
一文剖析C语言函数
手把手教你移植 tinyriscv 到FPGA上
Small chip chiplet Technology
【Vim】使用教程,常用命令,高效使用Vim编辑器
c语言字符指针、字符串初始化问题
Online JSON to plaintext tool
Summary of solutions to cross system data consistency problems
如何找到外文文献对应的中文文献?
【IDEA】IDEA 格式化 代码技巧 idea 格式化 会加 <p> 标签
文献综述如何挑选文献进行阅读,比如我的检索结果有200多篇根本看不完,如何进行文献挑选呢?...
新加坡国立大学|采用无模型强化学习方法评估能源效益数据中心的节能情况
apipost脚本使用讲解一~全局变量
pytorch基础(1)
Storage structure of graph
圖的存儲結構
EasyCVR平台路由日志功能的技术实现过程【附代码】
CUDA error:out of memory caused by insufficient video memory of 6G graphics card
系统学习+主动探索,是最舒适的入门学习方式!