I have email addresses like user1@gmail.com, user2@ymail.com user3@hotmail.com ... etc. I want a Mysql SELECT that will trim user name
user1@gmail.com
user2@ymail.com user3@hotmail.com
SELECT
Try this, removes the @ from the domain and just leaves the domain, example: domain.com
select SUBSTR(SUBSTR(email_field, INSTR(email_field, '@'), INSTR(email_field, '.')), 2) as domain