How to access an FTS table in SQLite.swift using the IN condition
问题 I'm trying to query an FTS table using SQLite.swift. Previously I have done it in Android. The essence of what I am trying to do is this: SELECT * FROM t2 WHERE id IN (SELECT docid FROM fts_table WHERE col_text MATCH 'something') From the SQLite.swift documentation I see the IN condition can be written like this: users.filter([1, 2, 3, 4, 5].contains(id)) // SELECT * FROM "users" WHERE ("id" IN (1, 2, 3, 4, 5)) And virtual tables can be queried like this: let wonderfulEmails = emails.match(