mysql介绍2种查询表字符集编码的方法。1、利用show columns语句配合full关键字查看当前数据库中指定表中所有列的字符集编码;2、利用show table status语句查看指定表的字符集编码。
1、利用show columns语句配合full关键字查看当前数据库中指定表中所有列的字符集编码
show full columns from 表名;
mysql> show full columns from 表名; +-------+----------+-----------------+------+-----+---------+-------+---------------------------------+---------+ | Field | Type | Collation | Null | Key | Default | Extra | Privileges | Comment | +-------+----------+-----------------+------+-----+---------+-------+---------------------------------+---------+ | id | int(3) | NULL | NO | PRI | NULL | | select,insert,update,references | | | name | char(12) | utf8_general_ci | YES | | NULL | | select,insert,update,references | | | dorm | char(10) | utf8_general_ci | YES | | NULL | | select,insert,update,references | | | addr | char(12) | utf8_general_ci | YES | | 未知 | | select,insert,update,references | | | score | int(3) | NULL | YES | | NULL | | select,insert,update,references | | +-------+----------+-----------------+------+-----+---------+-------+---------------------------------+---------+ 5 rows in set (0.00 sec)
2、利用show table status语句查看指定表的字符集编码
show table status from 库名 like 表名;
mysql> show table status from 库名 like 表名; +-----------+--------+---------+------------+------+----------------+-------------------------+-------------+------------+-----------------+----------+- | Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_leate_time | Update_time | Check_time | Collation | Checksum | +-----------+--------+---------+------------+------+----------------+-------------------------+-------------+------------+-----------------+----------+- | test_info | InnoDB | 10 | Compact | 10 | 1638 | 17-12-05 19:01:55 | NULL | NULL | utf8_general_ci | NULL | +-----------+--------+---------+------------+------+----------------+-------------------------+-------------+------------+-----------------+----------+- 1 row in set (0.00 sec)
上面是“mysql介绍2种查询表字符集编码的方法”的全面内容,想了解更多关于 mysql 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_2237.html
workflows工作流
一个孤独的斗篷人物站在一座巨大的雕塑旁
一座精致透明的白瓷人物雕塑comfyui工作流
树上挂着一只快乐的小樱桃
一只白色的孔雀ComfyUI工作流
一个神秘的隐藏面孔下一本书的剪影ComfyUI工作流
一只猫捧着一条鱼ComfyUI工作流
一只可爱的快乐老鼠戴着帽子ComfyUI工作流
图生图局部重绘ComfyUI工作流
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

日历设置每个月颜色都不一样
3D彩色卡片
3d文字动画效果
css3搭积木叠加图形
js导出excel插件(兼容mac电脑Numbers表格)
利用css绘画棋盘布局(象棋)
如何利用css3+js做一个下雨效果










