Is there any query in sqlite for selecting a substring?

Suppose I have a table Y with column X.

There is one line "X" with the line "abcdefg" and another line with "qwerty".

Is it possible to make a SELECT query in sqlite to select a string containing the substring "abcd"?

+3
source share
1 answer
SELECT * FROM Y WHERE X LIKE "%abcd%"
+6
source

Source: https://habr.com/ru/post/1742647/


All Articles