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:

enter image description here

it turns out id_product had unique key assigned it. had remove , inserts correctly.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -