update m set m=(case when m='男' then '女' else '男' end) where m<>'' 转载于:https://www.cnblogs.com/hantianwei/archive/2010/11/30/1892495.html