Answers for "android studio SELECT * FROM table"

0

android studio SELECT * FROM table

SQLiteDatabase db = this.getReadableDatabase();
Cursor c = db.rawQuery("SELECT column1,column2,column3 FROM table ", null);
if (c.moveToFirst()){
    do {
        // Passing values 
        String column1 = c.getString(0);
        String column2 = c.getString(1);
        String column3 = c.getString(2); 
        // Do something Here with values
    } while(c.moveToNext());
}
c.close();
db.close();
Posted by: Guest on December-15-2020

Code answers related to "android studio SELECT * FROM table"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language