I am currently running a query like this:
SELECT * FROM email WHERE email_address LIKE ' ajones@ %' OR email_address LIKE ' bsmith@ %' OR email_address LIKE ' cjohnson@ %'
I am worried about a large number of OR . Is there a way to condense this with something like an IN statement, for example:
SELECT * FROM email WHERE email_address LIKE (' ajones@ %', ' bsmith@ %', ' cjohnson@ %')
Or is it just wishful thinking?
source share