588创业论坛

标题: mysql报错:Column count doesn't match value count at row 1 [打印本页]

作者: 匿名    时间: 2020-3-19 17:59
标题: mysql报错:Column count doesn't match value count at row 1
mysql报错:Column count doesn't match value count at row 1 原因:

意思是存储的数据与数据库表的字段类型定义不相匹配.

错误原因1:列数不相等,请检查入库字段名称数量和入库字段值的数量是否相匹配,如果下面代码,少一个value3
  1. table_name(col_name1, col_name2, col_name3) VALUES('value1','value2');
复制代码
错误原因2:书写错误,如标点符号错误,如多出空格等




欢迎光临 588创业论坛 (http://bbs.588cy.com/) Powered by Discuz! X2.5