首页 > 运营 > 帮助中心 > 正文

ECSHOP批量去除商品重复属性的教程

2019-10-16 21:41:45
字体:
来源:转载
供稿:网友

ECSHOP用久了,可能会出现许多重复的属性,如下

ECSHOP批量去除商品重复属性的教程

在数据库中执行以下语句:
 

  1. deletea 
  2. from`ecs_goods_attr`a 
  3. leftjoin(select`goods_attr_id`,`attr_id`from`ecs_goods_attr`groupbygoods_id,attr_value)b 
  4. ona.`goods_attr_id`=b.`goods_attr_id` 
  5. anda.`attr_id`=b.`attr_id` 
  6. whereb.`goods_attr_id`isnullANDb.`attr_id`isnull; 

即可去重

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表