首页 文章

错误:列计数与第1行的值计数不匹配错误号:1136

提问于
浏览
-2

我想在Opencart电子商店上传一个包含产品,价格等的 .xlsx 文件 . 并且,我收到以下错误:

注意:错误:列数与第1行的值计数不匹配错误号:1136 INSERT INTO oc_product(product_id,quantity,sku,upc,ean,jan,isbn,mpn,location,stock_status_id,model,manufacturer_id,image, shipping,price,points,date_added,date_modified,date_available,weight,weight_class_id,status,tax_class_id,viewing,length,width,height,length_class_id,sort_order,subtract,minimum)VALUES(5546,999,'','','' ,'','','6.00340.00','',6,'6.00340.00'',13,'',1,785,0,'2016-07-27 17:29:43','2016-07 -27 17:29:43','2016-07-27',7,7,1,1,0,0,0,0,0,'1','1','1','1' );在/ var / www / vhosts / ......

我已经检查了 .xlsx 文件中的错误,或者错误输入了类似的东西 . 但是,我找不到导致错误的问题 .

有什么想法吗?非常感谢您的帮助 .

1 回答

  • 1

    我在insert语句中看到了一个额外的值,我在查询中对齐了逗号:

    INSERT INTO `oc_product` 
    (`product_id`,`quantity`,`sku`,`upc`,`ean`,`jan`,`isbn`      ,`mpn`       ,`location`,`stock_status_id`,`model`     ,`manufacturer_id`,`image`,`shipping`,`price`,`points` ,`date_added`         ,`date_modified`      ,`date_available`,`weight`,`weight_class_id`,`status`,`tax_class_id`,`viewed`,`length`,`width`,`height`,`length_class_id`,`sort_order`,`subtract`,`minimum`) VALUES 
    (5546        ,       999,   '',   '',''   ,''   ,''          ,'6.00340.00',''        ,6                ,'6.00340.00',13               ,''     ,1         ,785    ,0        ,'2016-07-27 17:29:43','2016-07-27 17:29:43','2016-07-27'    ,       7,                7,       1,             1,        0,      0,      0,       0,                0,         1' ,       '1',      '1',      '1');
    

相关问题