search - filter words for searching in mysql -
I want to search in mysql in 4 format: (for example: expensive book)
1- All words
2- Exact word or phrase
3- Any word
4- Any word
< Select the text from the code> item where "%." Select the text. '%';Can anyone help me filter out words in the 'Where' section?
Try it:
1)
Lessons like WHERE '%%' and lesson '% mahjong Text like '%' and 'book%'
2)
'expensive book%' like '%'
3) Text like '%' or '% text' expensive '%' or '% book%' as text '
4)
where text is not like'% ' And the text '% expensive%' and do not like the text '% book%'
Note that this is not quite effective and can take some time on the big table, especially 4) .
Comments
Post a Comment