Answer the question
In order to leave comments, you need to log in
Is it possible to do an inaccurate search in a MySql field and how to do it?
For example, there is a field that stores data as a full address string:
Ящерицын Росад снт Борисово деревня Серпуховский район Московская область
Росад деревня Другой район Другая область
росад москва
росад мос обл
Answer the question
In order to leave comments, you need to log in
I will rephrase my answer so that the moderators do not itch. It is stupid to store the address like this, you need to store it adequately, for example, you should look at fias, a site like fias.nalog.ru
Store adequately, this is to go read about 3rd normal form.
In general, of course, everything is strange for you, but, answering your question, there is such a LIKE operator. Lets search for similar glory, looks something like this:
The percent sign is a wildcard. But in your case it is better not to do so. Read about database normalization .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question