特殊语句

SELECT CASE WHEN `user_sex` =1
THEN '男'
ELSE '女'
END AS a
FROM `hy_member` 
WHERE 
LIMIT 30

原文地址:https://www.cnblogs.com/jthb/p/5153153.html