How to pull all the product id, skus, product names, description in magento using only mysql?

后端 未结 5 2021
孤街浪徒
孤街浪徒 2020-12-13 20:55

How i will pull all the prduct ir, skus , product name (titles) and desxription using mysql from Magento database? I used following query and got all the attributes except p

5条回答
  •  醉话见心
    2020-12-13 21:23

    Below is the simple way.

    select 
    sku.entity_id, sku.sku, #get sku and entity
    productName.value, #get name
    description.value #get description
    from 
    catalog_product_entity as sku,
    catalog_product_entity_varchar as productName,
    catalog_product_entity_text as description
    where
    productName.attribute_id = 73 
    and
    sku.entity_id = productName.entity_id
    and
    description.attribute_id = 75
    and
    sku.entity_id = description.entity_id;
    

提交回复
热议问题