5月 16

解决:Out of range value adjusted for column 'id' at row 1 晴

yaiba , 10:25 , 技术运用 , 评论(0) , 引用(0) , 阅读(2556) , Via 本站原创
MySQL升级到5.0.17后,在执行sql语句INSERT INTO `news` (`ID`, `Title`, `Content`) VALUES ('', '标题', '正文');时出现错误:#1264 - Out of range value adjusted for column 'ID' at row 1.

解决方法:
修改my.ini,将
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
改为:
sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION";。

Tags:
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]