select t3.sku from catalog_category_entity_varchar as t1
left join catalog_category_product as t2 on t2.category_id=t1.entity_id
left join catalog_product_entity as t3 on t3.entity_id=t2.product_id
where t1.attribute_id=41 and t1.value='Tables';
[Magento SQL] 更加分类名称,查询该分类下所有的sku
最新推荐文章于 2026-06-25 10:17:50 发布
本文提供了一段SQL查询代码,用于从商品目录中选取特定类别(如桌子)的产品SKU。通过表连接的方式,将商品类别、商品类别与产品的关联以及产品实体表进行了联结,并指定了具体的筛选条件。
2405

被折叠的 条评论
为什么被折叠?



