dimanche 1 mai 2016

SQLite position -1

I want to get one row from another table so I am trying to use this query

Cursor c =  database.rawQuery("select * from " + WordsTable.TABLE_NAME + " where " + WordsTable.COLUMN_ID + "=" + neededID, null);

I know that my WordsTable is not empty and neededID is coming in right way (for example neededID = 3 and I have row in WordsTable with id 3)

But cursor position is -1 . Whats wrong here?

Aucun commentaire:

Enregistrer un commentaire