I have 3 tables:
Product_categories (created from the import of a .csv )
product_reference | category_id | subcategories
REF.001 | 1 | 1/2
Categories (created from the import of a .csv )
id | name
1 | categoria_ejemplo_1
2 | categoria_ejemplo_2
Importer * (created to store all the data I need from the previous tables)
sku | category
REF.001 | null
How could I update Importer to make it look like this?
sku | category
REF.001 | categoria_ejemplo_1>categoria_ejemplo_2
* The data in the Importer table would be to export in .csv and be able to import them into WooComerce, hence you need to import the categories in the aforementioned way. link