连表更新(根据符合条件的分类,禁用该产品)

UPDATE `oc_product` p1 LEFT JOIN `oc_product_to_category` p2 ON p1.product_id=p2.product_id SET p1.`status`=0 WHERE p2.`category_id` = 209

Comments

发表回复

Your email address will not be published. Name and email are required