i am following this link :
Find entity_id & attribute_id of an attribute
I used this sql query :
INSERT INTO catalog_product_entity_varchar ( entity_type_id, attribute_id, store_id, entity_id, value)
SELECT 10, 1021, 1, entity_id, value
FROM catalog_product_entity_int
WHERE attribute_id = 1021;
but i got error in the image :
@Marius suggested to use "ON DUPLICATE KEY UPDATE" . I have no idea about this. when i googled it, i got some solution, but that did't worked.
please give me the updated query using ON DUPLICATE KEY UPDATE