P
P
pimanov32020-06-02 11:15:33
MySQL
pimanov3, 2020-06-02 11:15:33

How to formulate a query for entries containing words that are present in the text?

I have a similar request, but it works exactly the opposite way: I also tried to solve the problem in php using "strpos()", but I would like to get rid of this crutch. If the question is not at all clear, then I need a record where, when asked for "Hello", I would find a record with the text "priv". Sampling by one column.
SELECT * FROM `TABLE 12` WHERE `Vo` LIKE '%$text%'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2020-06-02
@pimanov3

match ... against ...
Or, if that's not enough, you can set some sphinx , for example. He is tough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question