在magento下订单的客户的性别

时间:2017-10-17 09:28:48

标签: magento magento-1.7 magento2 magento-1.8

我希望SQL或表关系能够找出在magento中发出特定订单的客户的性别。

1 个答案:

答案 0 :(得分:0)

在我的数据库中:

$scope.numbers = {
            0: 'zero',
            1: 'one',
            2: 'two',
            3: 'three',
            4: 'four',
            5: 'five',
            6: 'six'
        }

{{this.numbers[total.number]}}

您的SELECT t0.entity_id, t1.value FROM customer_entity AS t0 INNER JOIN ( SELECT t2.entity_id, t2.value FROM customer_entity_int AS t2 WHERE (t2.attribute_id = 18) ) AS t1 ON (t0.entity_id = t1.entity_id) 可能会有所不同。

你需要找到它:

attribute_id = 18