查询 b_user_info 表,性别字段为gender, user_id = 100000 的性别。
select case gender when 0 then '女生' when 1 then '男生' else '保密' end as '性别' from b_user_info where user_id = 100000;