this is what I have:
SELECT `id`, `names` FROM `screenplays` WHERE `names` LIKE '%joe%mike%'
the field names contains:
row1: joe
row2: mike
row3: joe,mike
how do I return all 3 rows as a result ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use
If the names are separated by a comma, and you don’t want names like joey when you specify joe, you can expand on the query like:
And similarly for each keyword