Column count doesn't match value count at row 1

Nov 5, 2011
106
8
Hi, could you guys help me? Whem im trying to run new query in sql im getting:

Column count doesn't match value count at row 1 Error

Can you guys fix my codes ?


INSERT INTO `furniture` VALUES ('399996', 'ads_background', 'ads_background', 's', '1', '1', '1.6', '1', '0', '0', '399996', '1', '1', '1', '1', '1', 'default', '1', '0', '0');

INSERT INTO `catalog_items` VALUES ('399996', '94', '399996', 'ads_background', '3', '0', '0', '1');
 

Joe

Well-Known Member
Jun 10, 2012
4,174
1,956
Open your catalog_items and furniture tables and show me the individual fields and how many there is. Here's an example of the R63B version, just open it in design view.
b2842eb5ff4e4ab69d1bf3cefabd30eb.png
 

Joe

Well-Known Member
Jun 10, 2012
4,174
1,956
Try these.
Code:
INSERT INTO `furniture` VALUES ('399996', 'ads_background', 'ads_background', 's', '1', '1', '1.6', '1', '0', '1', '399996', '1', '1', '1', '1', '1', 'default', '1', '0', '0', '0', '0', '0';
Code:
INSERT INTO `catalog_items` VALUES ('399996', '94', '399996', 'ads_background', '3', '0', '0', '1', '0', '0');
 
Nov 5, 2011
106
8
INSERT INTO `catalog_items` VALUES ('399996', '94', '399996', 'ads_background', '3', '0', '0', '1', '0', '0'); - Added with no prob,


INSERT INTO `furniture` VALUES ('399996', 'ads_background', 'ads_background', 's', '1', '1', '1.6', '1', '0', '1', '399996', '1', '1', '1', '1', '1', 'default', '1', '0', '0', '0', '0', '0';
on that getting error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
 

Liam

smooth and dynamic
Staff member
FindRetros Moderator
Apr 10, 2013
1,281
875
INSERT INTO `catalog_items` VALUES ('399996', '94', '399996', 'ads_background', '3', '0', '0', '1', '0', '0'); - Added with no prob,


INSERT INTO `furniture` VALUES ('399996', 'ads_background', 'ads_background', 's', '1', '1', '1.6', '1', '0', '1', '399996', '1', '1', '1', '1', '1', 'default', '1', '0', '0', '0', '0', '0';
on that getting error: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1

Code:
INSERT INTO `furniture` VALUES ('399996', 'ads_background', 'ads_background', 's', '1', '1', '1.6', '1', '0', '1', '399996', '1', '1', '1', '1', '1', 'default', '1', '0', '0', '0', '0', '0');

Try this.
 

Users who are viewing this thread

Top