vendredi 13 mars 2015

Select Multiple Columns In Database

I would like to select multiple columns using the DatabaseHelper class, the following sql statement works on the database itself but not within android, only the first column is returned:



c = db.rawQuery("SELECT column1, column2, column3 FROM " + TABLE, null);


This only returns the first column but when executed in SQLite itself all columns are returned, am I missing something here?


Thanks


Aucun commentaire:

Enregistrer un commentaire