. Advertisement .
..3..
. Advertisement .
..4..
I am tired of fixing the problem: column count doesn’t match value count at row 1 in the programs; even if I get the reference from another forum, it still returns an error:
Column count doesn't match value count at row 1.
To identify the problem, I will show you the detail here:
INSERT INTO `wp_posts` VALUES(2781, 3, '2013-01-04 17:24:19', '2013-01-05 00:24:19'.
INSERT INTO `wp_posts` VALUES(5, 5, '2005-04-11 09:54:35', '2005-04-11 17:54:35'
How do I do that? Could you support me in improving this problem?
The cause: This error happens because you are not supplying as much information as the table
wp posts
does. Now the DB engine is stumped as to where to put your data.The solution: You can fix the problem by supplying the names of the columns that are affected.
Please notice that the semi colon should only be used after the value declaration.
This error indicates that you have provided less data than the table
wp_posts
contains columns. Now the DB engine doesn’t know which columns you should place your data.This can be overcome by providing the names of columns that you wish to fill. Example:
Check out the table definition to see which columns you should fill.
insert
is inserting an new record. You are not changing an existing record. For that, useupdate