我正在从M1迁移到M2,并且需要在迁移之前更改M1 db中设置的属性。
在M1中,已经使用了7个以上的属性集,并且不再有意义。
UPDATE `catalog_product_entity`
SET `attribute_set_id` = '4'
WHERE `catalog_product_entity`.`entity_id` = 610;
我需要帮助的问题是,我希望一次一次更改所有内容。
以上使用Entity_id 610进行了更新,将attribute_set_id设置为4。
如何更改现有attribute_set_id为10的一个查询的所有内容?
我想将所有具有attribute_set_id 10的产品将其更改为4。
答案 0 :(得分:0)
这是您想要的吗?
UPDATE `catalog_product_entity`
SET `attribute_set_id` = 4
WHERE attribute_set_id = 10;