gpt4 book ai didi

mysql - 查询失败,出现以下错误:: (Error #1366) Incorrect integer value: '' for column; how to set version compatibility

转载 作者:行者123 更新时间:2023-11-29 10:45:06 28 4
gpt4 key购买 nike

这是我的当前 MySQL 版本:

mysql  Ver 14.14 Distrib 5.7.18, for Linux (x86_64) using  EditLine wrapper

这是以前的版本:

mysql  Ver 14.14 Distrib 5.5.47, for Linux (x86_64) using readline 5.1

我尝试运行的查询(缩写)是:

INSERT INTO bais_logs SET editor_id = '', type = 'basic'; -- no editor

我收到指定的错误。 editor_id 是一个 INT(10) UNSIGNED NOT NULL

它在以前的版本中有效,更新相关查询将是困难且耗时的。有没有办法设置与 MySQL 5.5 服务器的兼容性,以便忽略 '' 并继续?

最佳答案

我不确定,但我认为您的数据库上的 SQL 模式已更改。阅读 https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sql-mode-important 后尝试相应更改它

关于mysql - 查询失败,出现以下错误:: (Error #1366) Incorrect integer value: '' for column; how to set version compatibility,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44738972/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com