mercredi 4 novembre 2015

max value from sqlite giving wrong result not getting correct value

I have written one query which gives me result but not the exact result which I want. For example I have more than 5000 record something but it giving me 999 as a result. My DB Query is:

Cursor c=db.rawQuery("select max(id) from table", null);

output is: 999 (wrong)

Aucun commentaire:

Enregistrer un commentaire