1. 枚举类型响应 case when 用法
SELECT aa.username AS userName,
CASE
WHEN aa.le = 1 THEN '等级1'
WHEN aa.le = 2 THEN '等级2'
WHEN aa.le = 3 THEN '等级3'
WHEN aa.le = 4 THEN '等级4'
ELSE '未知等级'
END AS userLe,
aa.user_address AS userAddress
FROM user aa