4数据存储课案.ppt

delete示例 private void delete(SQLiteDatabase db){ String sql = delete from UserTbl where _id=2 ; db.execSQL(sql); } // 删除2 private void delete2(SQLiteDatabase db){ String whereClause = _id=?; String[] whereArgs = {String.valueOf(1)}; db.delete(UserTbl, whereClause, whereArgs); } update public int update (String table, ContentValues values, String whereClause, String[] whereArgs) Convenience method for updating rows in the database. table the table to update in values a map from column names to new column values. null is a valid value that will be translate

文档评论(0)

1亿VIP精品文档

相关文档