10.22

删除数据:

public void delete(Integer id)
{
    SQLiteDatabase db = dbOpenHelper.getWritableDatabase();
    db.execSQL("DELETE FROM person WHERE personid = ?",
                new String[]{id});
}
posted @ 2021-10-22 21:12  平安喜乐v  阅读(9)  评论(0编辑  收藏  举报