UPDATE mytable SET myfield1 = @NewValue1, SET myfield2 = @NewValue2, SET myfield3 = @NewValue3 WHERE < whetever conditions >However in this case you cannot base update on changes in any particular column anymore. You can update ALL columns either when any of the columns changed or all of them changed. I doubt you would want to use the last condition though.
-- Any column changes WHERE < whetever conditions > AND ( myfield1 <> @NewValue1 OR myfield2 <> @NewValue2 OR myfield3 <> @NewValue3) -- All column changes WHERE < whetever conditions > AND myfield1 <> @NewValue1 AND myfield2 <> @NewValue2 AND myfield3 <> @NewValue3>sir, I have one more qustions, if this table contains three fileds then how can i update