当前位置:网站首页>解决MySQL创建子视图并查看的时候,字符集报错问题
解决MySQL创建子视图并查看的时候,字符集报错问题
2022-08-02 03:22:00 【寒江飞冰】
ERROR 1267 (HY000): Illegal mix of collations (utf8_general_ci,IMPLICIT) and (gbk_chinese_ci,COERCIBLE) for operation ‘=’
上图是如何产生的这个错误。
对于这个问题的解决方法,如下:
如果在语句中包含中文时:使用convert(‘中文字符’ using utf8),前提是student表已经set names gbk;(让其视图能成功创建拥有数据) ,如上图所示。
总结:学习最好的方法是坚持,相信功夫不负有心人。
边栏推荐
- ModuleNotFoundError No module named 'xxx' possible solutions
- String comparison size in MySQL (date string comparison problem)
- Amazon sellers how to improve the conversion
- subprocess.CalledProcessError: Command ‘pip install ‘thop‘‘ returned non-zero exit status 1.
- Phospholipid-polyethylene glycol-azide, DSPE-PEG-Azide, DSPE-PEG-N3, MW: 5000
- Source Insight 使用教程(2)——常用功能
- @Accessors 注解详解
- 跨域问题解决
- Cloud server installation and deployment of Nacos 2.0.4 version
- DSPE-PEG-Silane, DSPE-PEG-SIL, phospholipid-polyethylene glycol-silane modified active group
猜你喜欢
Phospholipid-Polyethylene Glycol-Aldehyde DSPE-PEG-Aldehyde DSPE-PEG-CHO MW: 5000
C语言 0长度数组/柔性数组
Debian 10 NTP Service Configuration
Deveco studio Hongmeng app access network detailed process (js)
UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the index ing argu
kettle 安装与配置
Usage of JOIN in MySQL
Scientific research reagent DMPE-PEG-Mal dimyristoylphosphatidylethanolamine-polyethylene glycol-maleimide
C语言 十六进制整数字符串转十进制整数
每天填坑,精卫填坑第二集,TX1 配置从固态启动,安装Pytorch
随机推荐
Debian 10 NTP Service Configuration
【深度学习】从LeNet-5识别手写数字入门深度学习
如何查看一个现有的keil工程之前由什么版本的keil IDE编译
Usage of JOIN in MySQL
DSPE-PEG-DBCO 磷脂-聚乙二醇-二苯并环辛炔 一种线性杂双官能聚乙二醇化试剂
js 取字符串中某位置某特征的值,如华为(Huawei)=>华为
亚马逊卖家怎么提升转化率
Chapter 10 Clustering
[Basic Tutorial of Remote Control Development 1] Crazy Shell Open Source Formation Drone-GPIO (Remote Control Indicator Light Control)
磷脂-聚乙二醇-靶向新生血管靶向肽APRPG,DSPE-PEG-APRPG
这些JS题面试时一定要答对!
Error in render: “TypeError: Cannot read properties of null (reading ‘0‘)“ 报错解决方案
动态代理工具类
String comparison size in MySQL (date string comparison problem)
函数提升和变量提升
AttributeError: Can‘t get attribute ‘SPPF‘ on <module ‘models.common‘ from ‘/yolov5-5.0/models/commo
【博学谷学习记录】超强总结,用心分享 | 软件测试 接口测试基础
ssm various configuration templates
--fs模块--
np.isnan ()