当前位置:网站首页>mysql字符集
mysql字符集
2022-06-23 03:58:00 【编程小大白】
查看数据库字符集:
SHOW VARIABLES LIKE 'character%';
用SQL语句修改字符集:
修改数据库的字符集:
alter DATABASE test DEFAULT CHARACTER SET = utf8; // test为数据库名
修改数据库表的字符集:
ALTER TABLE test.bd_user DEFAULT CHARACTER SET = utf8; // bd_user为表名
修改数据库某个字段的字符集:
ALTER TABLE erp20220419.scm_supplier_goods MODIFY COLUMN unit VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci; // 这里也会改变字段类型
边栏推荐
- 英文字母pc是什么意思,互联网的pc指的是什么
- Three implementation methods: left fixed and right adaptive (Flex, float + BFC, float margin left)
- Is there a real part-time job online? How do college students find part-time jobs in summer?
- Go language - custom error
- Win11 app store keeps turning around solution
- Facing new challenges and becoming a better self -- an advanced technology er
- MCS: discrete random variable - uniform distribution
- MySQL自定义序列数的实现
- STM32 clock tree misconfiguration causes boot to enter hard interrupt
- Stm32cube serial port uses dma+idle to receive variable length data
猜你喜欢

Heimdall Database Proxy横向扩展提高20倍

stm32时钟树错误配置导致 开机进入硬中断

GO语言-自定义error

The road of architects starts from "storage selection"

STC 32比特8051單片機開發實例教程 一 開發環境搭建

IDEA 代码开发完毕后,提交代码,提交后发现分支不对,怎么撤回

FS4059A与FS5080E充电芯片的区别

电脑开机显示器黑屏是什么原因,电脑显示器黑屏怎么办
![[leetcode] longest increasing subsequence problem and its application](/img/e0/d666dccec1f65eed61fce83ac2190a.png)
[leetcode] longest increasing subsequence problem and its application

云原生数据库是未来数据库的天下
随机推荐
MCS: discrete random variable
Jetpack compose menubar Desktop Menu from door opening to entry
Common wireless charging and transmitting IC chips
View of MySQL introductory learning (III)
Markdown add background color to the picture
Redis缓存穿透解决方案-布隆过滤器
MCS:离散随机变量——Uniform分布
Build a gocd environment
Today's sleep quality record 80 points
stm32时钟树错误配置导致 开机进入硬中断
账号多开是什么意思?为什么要账号多开?如何安全实现?
小时候 觉得爸爸就是天 无所不能~
Go grouping & sorting
About dos/ddos attack and defense
Composite API
GO语言-panic和recover
MCS: continuous random variable chi square distribution
左侧固定,右侧自适应 三种实现办法(Flex,float + BFC ,float-margin-left)
Lihongyi, machine learning 5 Tips for neural network design
hash---------history