I want to update a row from one table to another
I am trying something like this:
INSERT INTO ps_product_shop (id_category_default)
SELECT Distinct id_category_default
FROM ps_product
WHERE id_product BETWEEN 1 AND 6226
But I get primary key error
I need to change values from ps_product to ps_product_shop for the id_category_default
Thanks
Is this what you’re looking for?