MySQL修改编码

MySQL中使用SQL语句查看某个表的编码

◇◆丶佛笑我妖孽 提交于 2021-01-09 01:49:43
MySQL中,如何使用SQL语句来查看某个表的编码呢?我们使用show create table 这一SQL语句来解决这个问题。 show create table可以查看创建这个表的SQL语句脚本,它的基本语法是: show create table <表名>; 我们用它看看test表的create脚本: mysql> show create table test; +-------+--------------------------------------------- ------------------------------------------------------ -------------------------------------------+ | Table | Create Table +-------+--------------------------------------------- ------------------------------------------------------ -------------------------------------------+ | test | CREATE TABLE `test` ( `t_id` int(11) DEFAULT NULL, `t_name` varchar(50)