I am trying to delete data from SQLite table where source column equals to "Online"
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.reminders/com.reminders.FetchDataActivity}: android.database.sqlite.SQLiteException: no such column: Online (code 1): , while compiling: delete from ReminderTable where source = Online
Here is my code:
public void deleteOnlineReminders() {
SQLiteDatabase db = this.getReadableDatabase();
db.execSQL("delete from "+ TABLE_REMINDERS + " where " + KEY_SOURCE + " = " + "Online");
}
Or
Is it due to reason that I don't have any data into table where column source = Online