【MySQL】1136 - Column count doesn't match value count at row 1问题解决
程序员文章站
2022-04-12 16:25:44
...
msyql 版本
SELECT VERSION()
执行的SQL
INSERT INTO frontend_publish_log (
`id`,`task_id`, `biz_id`,`biz_name`,`description`,`environment`,
`ip',`code`,`status`,`start_time`,`end_time`,`username`,`idc`
)
VALUES
(
null,866,32,'wap','更新','test','127.0.0.1',
'branch/master','success','2018-09-19 11:31:44',
'2018-09-19 11:33:03','3854','test'
)
问题
You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near
1136 - Column count doesn't match value count at row 1
原因
报错的内容说是“列计数与第1行值计数不匹配”,你会发现你数的个数没有问题,那么从下面两个方面来语法排除一下:
1.表名后的括号里的字段他们是用引号或反引号包含,数据库会根据这个分隔符去解析,如果分隔符出错,就会导致列数不对
2.逗号,和占位符?,这两个字符可能在中文输入法状态下输入的
推荐阅读
-
Column count doesn't match value count at row 1_MySQL
-
Column count doesn't match value count at row 1_MySQL
-
ç»è®°é¡µé¢åºç°Column count doesn't match value count at row 1
-
Column count doesn't match value
-
Column count doesn't match value_PHP教程
-
Column count doesn't match value
-
注å页é¢åºç°Column count doesn't match value count at row 1
-
注å页é¢åºç°Column count doesn't match value count at row 1
-
SQL报错:Column count doesn't match value count at row 1
-
ERROR 1136 (21S01): Column count doesn't match value count at row 1