I want to filter customer collection based on firstname containing chinese characters. In MySQL I can do it using the following:

SELECT `e`.* FROM `customer_entity` AS `e` WHERE (HEX(`e`.`firstname`) REGEXP '^(..)*E[4-9A]') AND (`e`.`email` LIKE '%qq.com') 

How can I do same in magento script.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.