我正在搜索带有分号 ( ;
) 符号的值。所以我有:
SELECT * FROM table WHERE value MATCH '; "+lookingFor+"*'
它在 SQLite 中给出逻辑错误。如何解释程序“;” 不是为了将代码分解成碎片吗?我做错了什么?
PS。值列示例:
apple; orange; banana
pineapple; watermelon
这是查询:
query = "SELECT id AS _id,
entry_id ,
re_value,
ke_value,
g_value
FROM search_eng_fts
WHERE g_value MATCH '"
+ lookingFor+ "* OR
; "+lookingFor+"*'
ORDER BY length(g_value)
LIMIT 100";