I am getting SQLiteLog﹕ (1) near "*": syntax errorin the below code while deleting row from table.Whats wrong with the code and why i am getting this error?
public void deleteVideo(String key){
String selectQuery = "DELETE * FROM " + TABLE_TOW + " WHERE " + KEY_ID + "= '"+key;
SQLiteDatabase db = this.getWritableDatabase();
db.rawQuery(selectQuery, null);
}
Aucun commentaire:
Enregistrer un commentaire