This script searches multiple keywords.
SELECT ID,SURNAME FROM people where name='john'
and SURNAME REGEXP 'search1|search2|search3'
ORDER BY id DESC
However, I have heard that regexp has lower performance and never use indexes. Is there a better/faster way to do the same ?
SURNAME = 'search1'orSURNAME LIKE '%search1%'?