SQLite enhanced query syntax on Android

后端 未结 1 1608
Happy的楠姐
Happy的楠姐 2021-01-21 10:23

I have the following SQLite query which works great on my local machine:

SELECT * FROM ftdata WHERE ftdata MATCH \'phrase1:this AND phrase2:that\'
相关标签:
1条回答
  • 2021-01-21 10:44

    Different Android firmwares use different SQLite versions, but the FTS syntax has not changed for a long time.

    Your problem is that most (all?) Android vendors do not enable the enhanced query syntax.

    You should restrict yourself to queries that work with both syntaxes. Alternatively, execute PRAGMA compile_options to check whether ENABLE_FTS3_PARENTHESIS is set.

    0 讨论(0)
提交回复
热议问题