开发者

Is there any query in sqlite to choose a substring?

开发者 https://www.devze.com 2022-12-27 21:35 出处:网络
Lets say I have a table Y with column X. There is one row of \"X\" with the string \"abcdefg\", and another row with \"qwerty\".

Lets say I have a table Y with column X.

There is one row of "X" with the string "abcdefg", and another row with "qwerty".

Can I make a SELECT query in sqlite to choose the row wh开发者_开发问答ich contains the substring "abcd" ?


SELECT * FROM Y WHERE X LIKE "%abcd%"
0

精彩评论

暂无评论...
验证码 换一张
取 消