当前位置:网站首页>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
边栏推荐
- 【PCL自学:Segmentation4】基于Min-Cut点云分割
- 沉寂了一段时间 ,我又出来啦~
- virtualbox扩展动态磁盘大小的坑
- Detect objects and transfer images through mqtt
- Google Earth Engine(GEE) 03-矢量数据类型
- ClickOnce error deploying ClickOnce application - the reference in the manifest does not match the identity of the downloaded assembly
- 手把手教你移植 tinyriscv 到FPGA上
- 【AI应用】NVIDIA GeForce RTX 3060的详情参数
- 上手了一个自然语言模型BLOOM
- fiddler 监听不到接口怎么办
猜你喜欢
随机推荐
MySQL十八:写语句的执行过程
How to start ID from 1 after MySQL deletes a table
图的存储结构
Sentinel
【剑指Offer】48. 最长不含重复字符的子字符串
实践torch.fx:基于Pytorch的模型优化量化神器
通过中金证券经理的开户二维码开股票账户安全吗?还是去证券公司开户安全?
电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!
[Blue Bridge Cup training 100 questions] scratch digital calculation Blue Bridge Cup competition special prediction programming question collective training simulation exercise question No. 16
消除el-image图片周围间隙
Storage structure of graph
如何设置企业微信群机器人定时发消息?
The latest cloud development wechat balance charger special effect applet source code
[tinyriscv verilator] branch transplanted to Da Vinci development board of punctual atom
树莓派(以及各种派)使用指南
Swing UI——容器(一)
c语言字符指针、字符串初始化问题
通过 MQTT 检测对象和传输图像
How to set the enterprise wechat group robots to send messages regularly?
seata









