query to extract as far as the @ symbol in email addresses
Hello.
I'd like to create a MySQL query to extract everything 'on the left' of the @ symbol in a set of email addresses, plus the @ symbol itself, plus an ellipsis.
In other words, if johndoe@example.com was in the list, I'd like the query to return just this:
johndoe@…
That is, returning just the first part of the email address but omitting the host.
Would anyone like to oblige me by telling me what that query would be?
Thanks in advance for your help.
Hugh
