I want to create a query that checks if a part of an entered string is allready in the database. e.g.
This is my string: nfgdfTESTsdgdsf
In the database there is an entry with: TEST
So it would return this row..
I tried some combinations with LIKE and % wildcards but it didn't work out. It would be easy todo it the other way round e.g.:
SELECT * FROM table WHERE field LIKE '%string%'
but that's the oppsite of what I want to do..
Any help is greatly appreciated. Thx alot