Update Function in android SQLite is not working

前端 未结 2 414
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 04:37

In my application I need to add and edit data to the SQLite database. When I do update data function app do not give any errors but my database wont update. Here is my Updat

2条回答
  •  攒了一身酷
    2021-01-06 05:19

    Your function returns 1; that's not ok... it should return ContentValues cv

    return db.update(DATABASE_TABLE, cv, KEY_ROWID+"="+rowId, null)
    

提交回复
热议问题