MySQL 执行插入操作时报1366 - Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'name' at row 1
来源:互联网 发布:网易家居 知乎 编辑:程序博客网 时间:2024/04/29 00:56
报错的原因就是在执行插入时对Name这个字段被赋予了错误的字符串值:’\xE4\xB8\xAD\xE6\x96\x87’
实际上就函数里面的变量接收到的值编码格式跟它定义的不一致。
使用navicate打开表设计,
将各字段的编码格式是否与MySQL中my-default.ini中的编码设置一致即可。
0 0
- MySQL 执行插入操作时报1366 - Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'name' at row 1
- 1366 - Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'cName' at row 1
- Incorrect string value: '\xE4\xB8\xAD\xE7\xBA\xA7' for column 'title' at row 1
- ERROR 1366 (HY000): Incorrect string value: '\xE4\xB8\xAD\xE5\x9B\xBD' for column 'tname' at row 1
- Incorrect string value: '\xE4\xB8\x80\xE7\xBA\xA7...' for column 'name' at row 1
- failed:Incorrect string value: '\xE5\xBC\xA0\xE4\xB8\x89' for column 'name' at row 1
- Incorrect string value: '\xE9\x98\xBF\xE6\x96\xAF...' for column 'name' at row 1 form表单提交乱码
- MySQL - Incorrect string value: for column 'name' at row 1
- 错误信息:Incorrect string value: '\xE4\xBD\xA0\xE5\xA5\xBD' for column 'name' at row 1
- \xe4\xb8\xad\xe6\x96\x87 phython 字符编码乱码问题
- ERROR 1366 (HY000): Incorrect string value: '\xE4\xBD\xA0\xE5\xA5\xBD' for column 'name' at row 1
- ERROR 1366 (HY000): Incorrect string value: '\xE5\xB8\x82' for column 'address' at row 1
- ERROR 1366 (HY000): Incorrect string value: '\xE5\xB8\x82' for column 'address' at row 1
- mysql:Incorrect string value: '\xE5\x8C\x97\xE4\xBA\xAC' for column 'address' at row 1
- MySQL存入中文显示“1.Incorrect string value: '\xE4\xBE\xAF\xE4\xBA\x9A...' for column 'NAME' at row 1”问题
- 彻底解决:Incorrect string value: '\xF0\x9F\x98\xAD",...' for column 'commentContent' at row 1
- Incorrect string value: '\\xE7\\x9B\\xB8\\xE5\\x90\\x8C...' for column 'comment' at row 1
- 解决mysql插入数据时出现Incorrect string value: '\xF0\x9F...' for column 'name' at row 1的异常
- spring框架整合使用定时任务框架java quartz的示例代码配置
- linux字符驱动之自动创建设备节点
- 调用layoutSubviews一定要注意别忘了调用父类
- ubuntu 代理服务器nginx安装
- Linux cal --显示日历
- MySQL 执行插入操作时报1366 - Incorrect string value: '\xE4\xB8\xAD\xE6\x96\x87' for column 'name' at row 1
- RxJava 官方文档中文翻译
- CSS3选择器(上)
- 如何将xib与一个控制器关联
- 页面缓存js问题解决
- 用form表单上传
- Linux cat --连接文件或标准输出并打印
- Yeoman官网新手教程:第二章 下载Yeoman生成器
- AndroidHttp通信 HTTP Client与HttpURLConnection的区别