Remove all table rows from SQLite database table

后端 未结 4 1057
眼角桃花
眼角桃花 2020-12-16 11:04

I want to remove all rows that i entered from my SQLite database table. The table name is tbltask. I tried to drop the table and delete * from table, but th

4条回答
  •  被撕碎了的回忆
    2020-12-16 11:59

    Delete all values from database table use this method in database.

    private SQLiteDatabase odb;
    public void deleteallvalues(){
         odb.delete(TABLE_NAME,null,null)
    }
    

    this work fine.

提交回复
热议问题