Answer the question
In order to leave comments, you need to log in
How to delete a row in a table using only the beginning and end of the text?
There is a dle_post table and a descr column with a description of the news, in all descriptions there is a line that is repeated, but inside it the product name is different.
Example:
We bake the best cherry bread in the country.
Answer the question
In order to leave comments, you need to log in
Just use the LIKE operator
delete from news where description like 'Мы печем лучший % хлеб в стране.';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question