mercredi 30 mars 2016

sqlite exception error SELECT command

Caused by: android.database.sqlite.SQLiteException: near "FROM": syntax error (code 1): , while compiling: SELECT _id, FROM TRACKS WERE _id=9

 String test = "SELECT _id, FROM TRACKS WERE _id="+"9";

    Cursor cursor = database.rawQuery(test, null);

Did not see the Point :( any help

Maybe there is a error in my Statement but it didn't work

Aucun commentaire:

Enregistrer un commentaire