update table set col2=case when col1 条件1 then 值1 when col1 条件2 then 值2;或者分为几句修改update table set col2=值1 where col1 条件1update table set col2=值2 where col1 条件2