I want to get multiple column from SQLite database for example I have the data with ids 1, 2, 3, 4, 5. Now in a SQLite database I want to get 2, 5 id values in Android:
String selectQuery = "SELECT * FROM " + Table_STOCK + "
WHERE " + KEY_ID + " = '" + id + "'" ;
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(selectQuery, null);
From the query above I can only get one at a time with one id. I want to get multiple columns with multiple ids.