我正在用分號(;)符號搜索值。所以我有:如何在SQLite中查找包含分號(;)的值?
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";
你可以粘貼你用來執行查詢的代碼! –
增加了實際查詢 –