SQLiteDatabase.Update(String, ContentValues, String, String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Convenience method for updating rows in the database.
[Android.Runtime.Register("update", "(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I", "GetUpdate_Ljava_lang_String_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_Handler")]
public virtual int Update (string? table, Android.Content.ContentValues? values, string? whereClause, string[]? whereArgs);
[<Android.Runtime.Register("update", "(Ljava/lang/String;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I", "GetUpdate_Ljava_lang_String_Landroid_content_ContentValues_Ljava_lang_String_arrayLjava_lang_String_Handler")>]
abstract member Update : string * Android.Content.ContentValues * string * string[] -> int
override this.Update : string * Android.Content.ContentValues * string * string[] -> int
Parameters
- table
- String
the table to update in
- values
- ContentValues
a map from column names to new column values. null is a valid value that will be translated to NULL.
- whereClause
- String
the optional WHERE clause to apply when updating. Passing null will update all rows.
- whereArgs
- String[]
You may include ?s in the where clause, which will be replaced by the values from whereArgs. The values will be bound as Strings.
Returns
the number of rows affected
- Attributes
Remarks
Convenience method for updating rows in the database.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.