select 表字段1,
case when 表字段1 <0 then ‘男‘ when 表字段1>0 then ‘女‘ else 3 end as 你自己起的字段名 from 表
mysql条件判断
原文:https://www.cnblogs.com/daysn/p/13180306.html