`
cocos
  • 浏览: 403145 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

mysql Incorrect integer value错误

阅读更多

# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

把它注释掉,替换成下面

sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

 

 

 

 

重启mysql

分享到:
评论

相关推荐

    Mysql错误1366 – Incorrect integer value解决方法

    周一刚上班就收到反馈:网站后台发布文章报如下错误: 代码如下: insert into doc_main (title,typeid,uptime,intro,ifhot,imgurl1,doctype,fileurl1,shunxu,titleurl,qitype) values(‘test’,’13’,’2011-5-30...

    Mysql错误1366 - Incorrect integer value解决方法

    MySQL错误1366 - Incorrect integer value 是一个常见的数据库错误,通常发生在尝试插入或更新数据时,如果提供的值与目标字段的数据类型不匹配,特别是当试图将非整数值(如空字符串'')插入到整数字段时,就会出现...

    解决出现Incorrect integer value: ” for column ‘id’ at row 1的问题

    解决出现Incorrect integer value: ” for column ‘id’ at row 1的问题 前言: 今天在学习Python的过程中操作数据库,遇到了一个问题,执行sql语句插入数据的时候报错Incorrect integer value: ” for column ‘id...

    解决出现Incorrect integer value: '' for column 'id' at row 1的问题

    在使用数据库进行数据操作时,有时会遇到错误提示"Incorrect integer value: '' for column 'id' at row 1"。这个错误通常出现在尝试插入数据到一个整数类型的列时,而该列期望的是一个整数值,但提供的值是空字符串...

    mysql connector for windows

    mysql connnector for windwos c++/c

    大牛总结 MySql常见错误集锦

    5. 错误1366: Incorrect integer value 如果尝试插入的数据与列的整数类型不匹配,就会出现此错误。确保插入的数据符合列的定义,例如,对于INT类型的列,不能插入非数字或超出范围的值。 6. 错误1264: Out of ...

    MySQL常见出错代码速查表

    8. 错误代码1366: "Incorrect integer value: 'value' for column 'column_name' at row X",指出你试图插入的整数值格式不正确,可能超出了列的允许范围。 9. 错误代码1114: "The table 'tablename' is full",这...

    Devart UniDAC v5.3.10 Full Source

    Devart UniDAC v5.3.10 Full Source 5.3.10 31-Jul-14 -The EmptyTable method is added to TUniTable -The SQL property is ...-Bug with incorrect parsing of table names containing a "$" character is fixed

    Delphi7.1 Update

    * TClientDataSet.ChangeCount will return an incorrect value when editing the value of a TStringField or a TWideStringField and then reverting it to the original value (Quality Central 2717 & 4508)....

Global site tag (gtag.js) - Google Analytics