Updating multiple columns in sql server 2016
FROM Specifies that a table, view, or derived table source is used to provide the criteria for the update operation. If the object being updated is the same as the object in the FROM clause and there is only one reference to the object in the FROM clause, an object alias may or may not be specified.If the object being updated appears more than one time in the FROM clause, one, and only one, reference to the object must not specify a table alias.This can also be used to change the column to NULL if the column has no default and is defined to allow null values.Compound assignment operator: = Add and assign -= Subtract and assign *= Multiply and assign /= Divide and assign %= Modulo and assign &= Bitwise AND and assign ^= Bitwise XOR and assign |= Bitwise OR and assign Returns updated data or expressions based on it as part of the UPDATE operation.
For more information about predicates and search conditions, see Search Condition (Transact-SQL). For more information, see SET ANSI_PADDING (Transact-SQL).
Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.