If i got a column to put some big texts, how can i make a query with pieces of this texts to select them? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

If i got a column to put some big texts, how can i make a query with pieces of this texts to select them?

For exemple, i got a column news. How can i make a query with some few words of this text?

5th Sep 2016, 7:14 AM
Elias Simoes
Elias Simoes - avatar
1 ответ
0
You just need to use a LIKE query with wildcards around the text you want to search for, e.g.: SELECT column1, column2 FROM table WHERE news LIKE '%text to search%';
5th Sep 2016, 7:56 PM
Michael Skae
Michael Skae - avatar