I have a SQLite database like this below picture where i want to insert value on the same rows of DAYS column. for better understanding I've marked red color where I want to insert value but each time new row is created for same DAYS. How can I achieve this?
Here is my insertData method where I'm inserting value to row
public boolean insertData(String days, String tasbeehName, int count){
SQLiteDatabase sqLiteDatabase = this.getWritableDatabase();
ContentValues contentValues = new ContentValues();
contentValues.put(COLUMN_DAYS, days);
contentValues.put(tasbeehName, count);
//Long result = sqLiteDatabase.insert(TABLE_TASBEEH_COUNT,null, contentValues);
Long result = sqLiteDatabase.insertWithOnConflict(TABLE_TASBEEH_COUNT,null, contentValues,sqLiteDatabase.CONFLICT_REPLACE);
if(result == -1)
return false;
else
return true;
}