snowflake.snowpark.WhenMatchedClause.update¶
- WhenMatchedClause.update(assignments: Dict[str, Union[Column, None, bool, int, float, str, bytearray, Decimal, date, datetime, time, bytes, list, tuple, dict]]) WhenMatchedClause[source]¶
Defines an update action for the matched clause and returns an updated
WhenMatchedClausewith the new update action added.- Parameters:
assignments – A list of values or a
dictthat associates the names of columns with the values that should be updated. The value ofassignmentscan either be a literal value or aColumnobject.
Example:
Note
An exception will be raised if this method or
WhenMatchedClause.delete()is called more than once on the sameWhenMatchedClauseobject.