给定下表:
create table index(name text, docid int);
create virtual table docs using fts4();
以下查询在查询单个令牌时按预期工作(例如:march或bad):
select name from index where docid in (select docid from docs where docs match ?)
但是我如何查询多个令牌(例如,bad bed)?直接绑定字符串bad bed不起作用(总是不选择任何内容),既不能用双引号括住占位符或字符串,也不能单独使用AND每个MATCH标记(最后一个会引发错误)。