array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) string(13) "likecs_art_db" array(1) { ["query"]=> array(1) { ["match_all"]=> object(stdClass)#28 (0) { } } } array(1) { ["createtime.keyword"]=> array(1) { ["order"]=> string(4) "desc" } } int(10) int(0) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } MySQL修改表中字段的字符集 - 爱码网

MySQL修改表中字段的字符集

ALTER TABLE 表名 MODIFY 字段名 要修改的属性;
例:ALTER TABLE `guaduates` MODIFY `studentno` CHAR(11) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;

扩展:修改表的字符集

ALTER TABLE 表名 要修改的属性;
ALTER TABLE `guaduates` CHARSET=utf8;

相关文章: