mercredi 15 avril 2015

SQLite update row error no such such column

SQLite database constantly giving no such table error


here's my code



public void addRating(String name, String ndate, String nrating,
String ncomment)
{

SQLiteDatabase data = this.getWritableDatabase();

Cursor query = data.rawQuery("update Station Set " + " date = "
+ ndate + "," + " rating = " + nrating + "," + " comments = "
+ ncomment + " where Stationname = '" + name + "'" , null);
query.close();

}

Aucun commentaire:

Enregistrer un commentaire