1
私のmagento 1.4.2ストアから未使用の属性オプションをすべて削除しようとしています。私の欠点は何ですか?未使用の属性オプションをすべて削除します。
編集:間違ったテーブルから削除していますか?
delete eaov
from eav_attribute_option_value eaov
inner join eav_attribute_option eao on eaov.option_id = eao.option_id
inner join eav_attribute ea on ea.attribute_id = eao.attribute_id
left join catalog_product_index_eav ce
on ce.attribute_id = ea.attribute_id and ce.value = eaov.option_id
where ce.entity_id is null
eaovから選択すると何が表示されますか? – THEn
まだすべてのオプションが表示されています。使用中のオプションも表示されます。 –