Answer the question
In order to leave comments, you need to log in
Is it possible to check the occurrence of a field value in a longer string with a sql query?
How would LIKE vice versa. Not the shorter one is contained in the field value, but the field value in the longer string.
Answer the question
In order to leave comments, you need to log in
Like this. If you need what you write in the comments. If that makes sense, I don't know.
SELECT *
FROM `users`
WHERE "Василий Пупкин" LIKE CONCAT( "%", name, "%" )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question