Created
June 23, 2015 18:19
-
-
Save benytocarlo/9a8182bd616c8472362e to your computer and use it in GitHub Desktop.
Listado de Usuarios en magento
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT ce.entity_id AS b, email, 'default_password', ( | |
SELECT value | |
FROM customer_entity_varchar | |
WHERE attribute_id =7 | |
AND customer_entity_varchar.entity_id = b | |
) AS l_name, ( | |
SELECT value | |
FROM customer_entity_varchar | |
WHERE attribute_id =5 | |
AND customer_entity_varchar.entity_id = b | |
) AS f_name, 1 | |
FROM `customer_entity` AS ce | |
JOIN customer_entity_varchar AS cev ON ce.entity_id = cev.entity_id | |
WHERE 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment