You can use a view:
update t set value = a.value from Table as t inner join (values (22, 2), (55, 5), (99, 9) ) as a(id, value) on a.id = t.id
For me, this is the most elegant way to do this, and it is also easy to expand (you can add more columns if you want)
source share