2016-12-28 1 views

답변

0

고객은 이메일과 비밀번호로 로그인 않으며 모든 고객이 이메일을 원하는 경우 암호는 다음이 쿼리는 도움이 될 수 있습니다

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 
관련 문제