I have a table the contains a VARCHAR column called - DOC_NAME. I would like to query this column for any string matches, partial matches are accepted as well.
For example, the column contains:
"How dangerous Virus and Spyware attach on the system – Techicode"
If I search for "virus spyware" I get no results. I don't want to search each word separately, as this might return irrelevant results. Also, I want to search for 'keywords' and not necessary the whole string.
I've tried the following options:
select * from docs where DOC_NAME like '%virus spyware%';
I've also tried:
SELECT * FROM docs WHERE DOC_NAME LIKE CONCAT('%','virus spyware','%')
But as I've mentioned, I don't any results back.
I there a query I can use that will return a value?
Thanks in advance.