进行一下条件判断就可以了如:if(sqldata)sex = "man"elsesex = "female"
select values CASE WHEN 1 THEN '男' ELSE '女' ENDfrom tables