Hi, doing a search on mysql.
The user entered the search query 'John Smith', you need to get the lines where the query substring is found in various combinations
one)
John smith loren ipsum ...
... Loren ipsum john smith .
... Loren john smith ipsum ....
2)
Loren john ipsum smith amet
Trying to make a request. With paragraph 2, everything is clear:
SELECT * FROM `person` WHERE memo LIKE '% John % Smith %'
With paragraph 1 no.
Request:
SELECT * FROM `person` WHERE memo LIKE '%John%Smith%'
will return us including such lines:
Loren el john athan ipsum le smith el amet
And I do not need it, we need lines, as indicated in paragraph 1.
I understand that you need to use regexp?
Thank.