MySQL 错误 1366:1366 Incorrect integer valueMySQL 错误 1366:1366 Incorrect integer value
来源:互联网 发布:做淘宝要怎么做 编辑:程序博客网 时间:2024/06/05 17:44
MySQL 错误 1366:1366 Incorrect integer value
这个必须记录下来,整整折磨了我一天,最后发现其实只是一个sql错误跟其他的没有任何关系,像这样的问题经验较丰富的程序员应该会第一时间想到是 mysql问题,但是一般的人都会认为是php源程序出错了,这是个思维惯性,平时接触最多的就是php代码,所以很难想到是MySQL问题,虽然已经提示的很明显了,执行以后提示错误代码时“1366 Incorrect integer value: '' for column 'configuration_group_id' at row 1
in:
[INSERT INTO nfj_configuration_group VALUES ('', 'Easy Populate', 'Config options for Easy Populate', '1', '1')]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
”。
1366错误是MySQL配置问题,你只要找到my.ini文件并查找sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"这句话,将双引号前面{STRICT_TRANS_TABLES,}删除,改成sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION",重启一下mysql后即可。前者很严格,不允许向数据库插入空值,所以就会有Value后面那个单引号。切忌看错误提示啊,不然弯路够你走的啊。。。
- MySQL 错误 1366:1366 Incorrect integer valueMySQL 错误 1366:1366 Incorrect integer value
- MySQL 错误 1366:1366 Incorrect integer value
- Mysql Incorrect integer value(1366)错误解决方法
- mysql 1366 Incorrect integer value错误
- Incorrect integer value(1366)错误解决方法
- 1366 Incorrect integer value
- MySQL报错“1366 - Incorrect integer value
- 消除#1366 - Incorrect integer value: '' for column
- Navicat中 1366错误 incorrect string value
- MySQL的ERROR 1366 (HY000): Incorrect string value错误解决
- 运行mysql5.x版本的时候,出现错误: [Err] 1366 - Incorrect integer value: '' for column 'Fbirthday' at row 1
- Incorrect integer value
- MySQL 报错 Truncated incorrect INTEGER value: ''
- MYSQL报错:Incorrect integer value
- MySql中文乱码错误 mysql error 1366 incorrect string value 不能插入中文字符
- 字符集不同引发的MySQL的1366错误:Warning: #1366 Incorrect string value...
- 错误代码: 1366 Incorrect integer value: 'zhangsan' for column 'depart_teacher' at row 1
- ERROR 1366 (HY000): Incorrect integer value: 'False' for column 'bd_ip' at row 1943555
- oracle 的pdm和dmp含义
- 带文字的ImageButton
- 创业公司老板管理常识
- MC新手入门(四十七)------ 重力感应
- mysql in 子查询 效率慢 优化(转)
- MySQL 错误 1366:1366 Incorrect integer valueMySQL 错误 1366:1366 Incorrect integer value
- oracle查询某表中是否含有某字段
- QT环境的配置和使用
- zxing 竖屏 图像旋转90度 解决方法
- Android网络连接判断与处理
- couninitialize作用
- Json特殊字符处理
- window和linux相互传输文件方法
- 隔海观潮看SaaS