1
我有Magento数据库,我想从Magento数据库中使用Mysql Query获取客户用户名和密码。如何从Magento DB获取客户用户名和密码
我有Magento数据库,我想从Magento数据库中使用Mysql Query获取客户用户名和密码。如何从Magento DB获取客户用户名和密码
客户不使用电子邮件和密码登录,如果你希望所有的客户电子邮件地址和密码,然后该查询可以帮助
SELECT c.entity_id,c.email,
(
SELECT fn.value
FROM customer_entity_varchar fn
WHERE c.entity_id = fn.entity_id AND
fn.attribute_id = 12) AS password_hash,
(
SELECT fn.value
FROM customer_address_entity_varchar fn
WHERE ca.entity_id = fn.entity_id AND
fn.attribute_id = 30) AS cep
FROM customer_entity AS c
LEFT JOIN customer_address_entity AS ca ON c.entity_id = ca.parent_id
LEFT JOIN customer_address_entity_text AS cat ON cat.entity_id = ca.entity_id
GROUP BY entity_id