android - Method db.delete some rows? -
I have 4 fields in the table (note 1, note 2, note 3, note 4). I want to delete all the data contained in Delete always deletes entire rows. In the specific column to clear the value, use an update query, for example note 1 and
note 2 . I want to add logic to the method
db.delete , but I have trouble.
Public Zero Deletion () {SQLiteDatabase db = mHelper.getWritableDatabase (); Db.delete (Note: TABLE_NAME, blank, blank); }
ContentValues cv = new ContentValues (); cv.putNull ("Note1"); cv.putNull ("comment2"); Db.update (NoteABABLE.TABLE_NAME, CV, empty, empty);
Comments
Post a Comment