mysql - Why is there a duplicate entry when this field doesn't exist? -
this table prestashop
why error though 'product_default' doesn't exist?
duplicate entry '2971-0' key 'product_default'
insert
psproduct_attribute
(id_product
,location
,ean13
,upc
,quantity
,reference
,supplier_reference
,wholesale_price
,price
,ecotax
,weight
,unit_price_impact
,minimal_quantity
,default_on
,available_date
) values ('2971', '', '', '', '0', '', '', '0', '0', '0', '0', '0', '1', '0', '0000-00-00')
here table structure:
it turns out id_product
had unique
key assigned it. had remove , inserts correctly.
Comments
Post a Comment