我想从 SQLite DB 中读取存储在 id 10 到 20 中的数据。我需要在以下代码中添加/更改什么?
mNumOneTest = new Vector<Test>();
DiagnoseTestOpenHelper helper = new DiagnoseTestOpenHelper(
TestOneTimeTable.this);
mDb = helper.getReadableDatabase();
Cursor cursor = mDb.rawQuery("SELECT * FROM TEST;", null);
if (cursor.getCount() > 0) {
cursor.moveToFirst();
do {
Test test = new Test();
test.setId(cursor.getInt(0));
test.setNumber_one(cursor.getInt(1));
test.setNumber_two(cursor.getInt(2));
mNumOneTest.add(test);
} while (cursor.moveToNext());
}