UPDATE mytable SET fieldName= CASE other_field WHEN 1 THEN 'value' WHEN 2 THEN 'value' WHEN 3 THEN 'value' WHEN 4 THEN 'value' END WHERE id IN (1,2,3, 4);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)