Brent W Well-known member Apr 17, 2014 #1 Would like to be able to run an sql query against my databases where the email address has more than three periods before the @ part of the email address.
Would like to be able to run an sql query against my databases where the email address has more than three periods before the @ part of the email address.
H HWS Well-known member Apr 17, 2014 #2 SELECT email from xf_user WHERE email LIKE '%.%.%.%@%' will return all emails with 3 or more dots before the @. (edited missing %)
SELECT email from xf_user WHERE email LIKE '%.%.%.%@%' will return all emails with 3 or more dots before the @. (edited missing %)
Brent W Well-known member Apr 17, 2014 #3 HWS said: SELECT email from xf_user WHERE email LIKE '%.%.%.%@' Click to expand... Doesn't work against this email: k.i.d.i.e.mu@gmail.com
HWS said: SELECT email from xf_user WHERE email LIKE '%.%.%.%@' Click to expand... Doesn't work against this email: k.i.d.i.e.mu@gmail.com
H HWS Well-known member Apr 17, 2014 #4 BamaStangGuy said: Doesn't work against this email: k.i.d.i.e.mu@gmail.com Click to expand... Ah, sorry, should be: SELECT email from xf_user WHERE email LIKE '%.%.%.%@%'
BamaStangGuy said: Doesn't work against this email: k.i.d.i.e.mu@gmail.com Click to expand... Ah, sorry, should be: SELECT email from xf_user WHERE email LIKE '%.%.%.%@%'
Brent W Well-known member Apr 17, 2014 #5 HWS said: Ah, sorry, should be: SELECT email from xf_user WHERE email LIKE '%.%.%.%@%' Click to expand... Thanks that worked.
HWS said: Ah, sorry, should be: SELECT email from xf_user WHERE email LIKE '%.%.%.%@%' Click to expand... Thanks that worked.