当前位置:Gxlcms > 数据库问题 > Mysql 库、表、字段 字符集

Mysql 库、表、字段 字符集

时间:2021-07-01 10:21:17 帮助过:3人阅读

show character set;
show create database aloe;
show create table book_category;
show full columns from book_category;

 

ALTER DATABASE `aloe` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

ALTER TABLE `book_category` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

ALTER TABLE `book_category` CHANGE `name` `name` VARCHAR(200) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL

Mysql 库、表、字段 字符集

标签:

人气教程排行