我希望SQL或表关系能够找出在magento中发出特定订单的客户的性别。
答案 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