In 1, MATCH
works only with strings, so it converts all values of the wordId
column to strings and searches them for the string '65535'
.
In 2, you are comparing the values in the wordId
column with the string '65536'
.
In 3, you are comparing the values in the wordId
column with the number 65536
.
You should use parameters (selectionArgs
) only for strings, not for numbers.
Please note that the only queries that work efficiently on FTS tables are lookups with MATCH
and lookups on the rowid
/docid
.
If you need other lookups, you database schema is not designed correctly.