语法:updat table_name set
column_name1 = case id
when 1 then 'a'
when 2 then 'b'
when 3 then 'c'
end,
colunm_name = case id
when 1 then 'd'
when 2 then 'e'
when 3 then 'f'
end
where id in (1,2,3);
语法:updat table_name set
column_name1 = case id
when 1 then 'a'
when 2 then 'b'
when 3 then 'c'
end,
colunm_name = case id
when 1 then 'd'
when 2 then 'e'
when 3 then 'f'
end
where id in (1,2,3);