Magento 2 product varchar table eav attribute data update using sql query

UPDATE catalog_product_entity_varchar AS c1 JOIN catalog_product_entity AS c2 ON c1.row_id = c2.entity_id JOIN eav_attribute AS e ON c1.attribute_id = e.attribute_id SET c1.value = 'NOINDEX,NOFOLLOW' WHERE `attribute_code` = 'robot_index' AND `entity_type_id` = '4' AND c1.row_id = '86211' AND c1.store_id -- Row id u can use dynamic it's for only one record update. = '0'

Comments

Popular posts from this blog

Magento 2 upgrade steps

Magento 2 test data clean using my sql query

Magento 2 invalid Form key