mysql中update 按条件进行更新

update salary set sex=case when sex='f' then 'm' else 'f' end;

猜你喜欢

转载自blog.csdn.net/hgtjcxy/article/details/81983504