Magento 1.9 从 phpMyAdmin 更改基本图像

Magento 1.9 change base image from phpMyAdmin


我需要帮助来更改 phpMyAdmin 中数据库的基本图像。

进行更改的 table 是 catalog_product_entity_varchar
如图片附件所示
phymyadmin table
我必须使用 attribute_id 78
value 列复制相同的字符串 到 attribute_id 77
其中 entity_id 相同。

我需要帮助创建正确的查询
谢谢

类似的东西应该可以解决问题(尝试前备份,这是一个提示,但我没有尝试):

UPDATE
    catalog_product_entity_varchar t1 
INNER JOIN catalog_product_entity_varchar t2 
ON (t1.entity_id=t2.entity_id 
    AND t2.attribute_id=78 
    AND t1.attribute_id = 77)
SET t1.value = t2.value 

但如果您不需要保留属性 77,您可以删除所有带有 77 的条目,然后 update catalog_product_entity_varchar set attribute_id = 78 where attribute_id = 77