Use a statement to bulk modify data, and where the use case when:
update tblUpdate
set Col2 = (case when Id = 1 then 'third modified 5'
when Id = 2 then 'third modified 5'
else 'third modified 5'
end
)
where Id = 1 or Id = 2;
Use a statement to bulk modify data, and where the use case when:
update tblUpdate
set Col2 = (case when Id = 1 then 'third modified 5'
when Id = 2 then 'third modified 5'
else 'third modified 5'
end
)
where Id = 1 or Id = 2;