Sqlite Delete Query syntax in Android

后端 未结 4 1362
不知归路
不知归路 2021-01-04 21:37

I want to write a Query to delete a row from the table. I am confused of writing the statement. I need some help in writing this. I am providing my requirement here with pla

4条回答
  •  时光说笑
    2021-01-04 22:01

    String table_name = "myTable";
    String where = "value1 = 'string1'"
        + " AND value2 = 'string2'"
        + " AND value3 = 'string3'";
    String whereArgs = null;
    mDb.delete(table_name, where, whereArgs);
    

提交回复
热议问题