2012-03-05 56 views

回答

1

我相信這個SQL查詢會幫助你。

select 
    type_id,sku 
from catalog_product_entity a 
left join catalog_category_product cp on cp.`product_id` = a.entity_id 
left join catalog_product_relation cpr on cpr.child_id = a.entity_id 
where 
     cp.product_id is null 
    and cpr.parent_id is null 
    and a.type_id != 'configurable' -- per ben below 
+0

需要排除可配置...和a.type_id!='可配置' – benmarks 2012-03-06 04:06:52