sql Miva - SQL Unassign Category Helper

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql Miva - SQL Unassign Category Helper相关的知识,希望对你有一定的参考价值。

SELECT 
	c.code AS 'category_code',
    p.code AS 'product_code'
FROM s01_CategoryXProduct AS cxp
LEFT JOIN s01_Products AS p
ON cxp.product_id = p.id
JOIN s01_CategoryXProduct AS cxp2
ON cxp2.product_id = p.id
LEFT JOIN s01_Categories AS c
ON cxp2.cat_id = c.id
WHERE cxp.cat_id = (SELECT id FROM s01_Categories c WHERE c.code = 'discontinued') AND c.code != 'discontinued'

以上是关于sql Miva - SQL Unassign Category Helper的主要内容,如果未能解决你的问题,请参考以下文章

sql Miva - 变体产品代码的主产品

sql Miva - 数据库表迁移StoreKey查询

sql Miva - 主产品代码中的所有变体

sql Miva Merchant - 选择特定产品和图像类型的所有生成图像

xml CouponCustomer_Unassign.xml

xml CouponCustomer_Unassign.xml