I have a column's field filled with all kinds of data from a user request (one request per row).
I only need the email addresses from these users' requests, and they are all placed in this column according to the following format:
[...data...] Email: mysql@se.com Phone: [...remaining data...]
I have found this question:
select part of table column data in mysql
Which provides a solution for part of the problem:
SELECT SUBSTR(message,INSTR(message,'Email: ')+7) FROM user_req_log
However, this will return all the unwanted remaining data.
What's the most efficient way to confine the results to the strings I need (email addresses) and, at the same time, ignore duplicates?