Q:

How to use SQL command "Update" in android

This may sound very simple and off the track, but any help will be highly appreciated. How can we execute raw UPDATE command of SQLite in Android just like we can execute rawQuery(..,  ). We have SQLiteDatabase.update(  ) but how to run a raw update like 
UPDATE STATS SET TEMP_F = 74.9 
WHERE ID = 44 
AND MONTH = 7;

A:

The perferred method is to use the SQLiteDatabase convenience class "update"
update(String table, ContentValues values, String whereClause, String[] whereArgs)
examples:

db.update("my_table", cvValues, "id=25", null);
-- OR --
db.execSQL(strSQL); // open update; not to be used with SELECT

