android studio select 2a from table

Solutions on MaxInterview for android studio select 2a from table by the best coders in the world

showing results for - "android studio select 2a from table"
Abril
17 May 2016
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();
14