I want to insert pairs of: category_number (1184) / id_product in the ps_category_product table.
To add one single pair (for instance 1184/2, with 1184 being the category number and 2 the product ID), the following request works:
INSERT IGNORE INTO ps_category_product SELECT 1184, 1, 0 FROM ps_product;
But I would like make this request over all products, so I tried this request:
INSERT IGNORE INTO ps_category_product SELECT 1184, (SELECT id_product from ps_product), 0 FROM ps_product;
But it does not work.
Any idea ?
Thanks