jeudi 26 novembre 2015

Android SQLlite Sort with simple query

Maybe someone can help me before i lose my mind. I want to sort a SQL database.

SQLiteDatabase db = getWritableDatabase();
db.query(TABLE_NAME, new String[]{COLUM_MAME_1, COLUM_MAME_2, COLUM_MAME_3}, null, null, null, null, COLUM_MAME_3 + " ASC");

Q: db.query... manipulates or should manipulate the database? Cause I get no error and nothing happens to the database. If not? is there a simple way to do it?

Roland

Aucun commentaire:

Enregistrer un commentaire