修改库字符集
ALTER DATABASE ods_a6
DEFAULT CHARACTER SET utf8mb4
DEFAULT COLLATE utf8mb4_bin;
修改表字符集
ALTER TABLE nacos.config_info
DEFAULT CHARSET=utf8mb4
COLLATE=utf8mb4_bin;
修改字段字符集
ALTER TABLE workwechat.work_wechat_push_pool modify column cust_type
varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL DEFAULT ‘’ COMMENT ‘客户类型’;