Android SQLite: Update Statement

后端 未结 6 2002
半阙折子戏
半阙折子戏 2020-11-28 02:02

I need to implement SQLite in my application. I followed this tutorial.. Creating and using databases in Android one

Everything is working fine. I inserted 1 row wit

6条回答
  •  遥遥无期
    2020-11-28 02:47

    You can use the code below.

    String strFilter = "_id=" + Id;
    ContentValues args = new ContentValues();
    args.put(KEY_TITLE, title);
    myDB.update("titles", args, strFilter, null);
    

提交回复
热议问题