0

我正在将 magento 1.3 中的产品导出到 magento 1.6,在 magento 1.3 的 .csv 中它有一个 category_ids 字段,而在 magento 1.6 的 .csv 中有一个 _category 字段。我只想拥有与 .csv ma​​gento 1.6 相同的 magento 1.3 的 .csv 属性字段,以便我可以将 magento 1.3 中的 .csv 导入 magento 1.6。

我现在的问题是如何在我的 mysql 中查询以从 magento 1.3 中的 category_ids 获取类别名称?

我查看了 magento 1.3 中的表格,但那里没有类别名称。

在 magento 1.3 的 .csv 中,它有这个表

category_ids
------------
154
154
154
59
63,88
63
61

我尝试这个 sql 查询,但没有任何返回..

SELECT catalog_category_entity_varchar.value FROM catalog_category_entity_varchar WHERE value_id = 154;

有人知道我的案子吗?提前致谢 ...

4

2 回答 2

0

像这样试试

要获取所有类别,请使用以下查询:

SELECT * FROM catalog_category_entity_varchar where attribute_id=111;

您将获得以下值 value_id、entity_type_id、attribute_id、store_id、entity_id、value。

这里,entity_id - CategoryID,Value 是 Category Name。

value_id     entity_type_id       attribute_id      store_id     entity_id      value
   1               9                111                 0            3       'Root Catalog'
   4               9                111                 0            4       'Shirts'
   7               9                111                 0            5       'Shoes'

如果要按特定获取类别名称,则使用以下查询:

SELECT catalog_category_entity_varchar.value FROM catalog_category_entity_varchar where attribute_id=111 and entity_id=4;

4- 类别 ID

于 2012-09-17T05:02:47.460 回答
0

我现在得到查询,就是这样......

SELECT * FROM catalog_category_entity_varchar WHERE entity_id = 40
于 2012-09-20T06:50:51.570 回答