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