A very simple task, it would seem, is an attempt to get the given range of records / rows in my SQLite db in an Android application with the following:
String[] projection = {"_id"};
String selection = "_id between ? and ?";
String[] selectionArgs = {"1", "10"};
queryBuilder.query(db, projection, selection, selectionArgs, null, null, null);
With Args above, I get only two lines, lines 1 and 10. If I change arg to something else, I get the whole batch (the whole set of records / lines), as if there were no conditions. I banged my head during the day, why does it work the way it happens, maybe there is some special thing to know about the use of "between" in SQLite? Any comments / help are greatly appreciated.
fissk source
share