错误:Column count doesn't match value count at row 1_errcode = 2, detailmessage = column count doesn't
作者:菜鸟追梦旅行 | 2024-05-21 09:26:15
赞
踩
errcode = 2, detailmessage = column count doesn't match value count
开发中运行mysql脚本,发现提示mysql提示Column count doesn't match value count at row 1错误,经过检查后发现是由于写的SQL语句里列的数目和后面的值的数目不一致, 比如insert into 表名 (field1,field2,field3) values('a','b')这样前面的是三列,后面却只有二个值,这就会出现这个错误的。