select (case sex when ‘f’ then ‘女’
when ‘m’ then ‘男’ end )性别 from 表名
数据库查询别名case when then
最新推荐文章于 2022-08-16 19:31:47 发布
select (case sex when ‘f’ then ‘女’
when ‘m’ then ‘男’ end )性别 from 表名