I want to collectively some fields to the same value if they meet the criteria in my where clause. So instead of the following:
UPDATE Table1
SET Column1 = Value1, Column2 = Value2
WHERE Some_Column = Some_Value
I need to do something like:
UPDATE Table1
SET Column1, Column2 WHERE Some_Column = Some_Value
I am assuming you are trying to chain assignments as is possible in languages like
C#where you can dox = y = z = 4;to set multiple variables to the same value.The
UPDATEgrammar in MySQL is belowIt does not support this. You need to repeat the expression