I am wanting to get the entity_id value from each row in the catalog_product_entity table, and each store_id value from each row in the catalog_product_entity_int table, where the entity_id of the first table is equal to the entity_id of the second table.
What is wrong with this SQL insert statement:
INSERT INTO `catalog_product_entity_varchar` ("","4","231",i.store_id,p.entity_id,"D") SELECT p.entity_id, i.store_id FROM catalog_product_entity p LEFT JOIN catalog_product_entity_int i ON i.entity_id = p.entity_id; MySQL said:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"","4","231",i.store_id,p.entity_id,"D") SELECT p.entity_id, i.store_id FR' at line 1