android sqlite select query

Solutions on MaxInterview for android sqlite select query by the best coders in the world

showing results for - "android sqlite select query"
Breanna
14 Jan 2020
1SQLiteDatabase db = this.getReadableDatabase();
2Cursor c = db.rawQuery("SELECT column1,column2,column3 FROM table ", null);
3if (c.moveToFirst()){
4    do {
5        // Passing values 
6        String column1 = c.getString(0);
7        String column2 = c.getString(1);
8        String column3 = c.getString(2); 
9        // Do something Here with values
10    } while(c.moveToNext());
11}
12c.close();
13db.close();