在数据库表中用0,1表示男女性别,在前端展示时显示男女 select case when userSex = 0 then '男' else '女' end userSex from table_name where 条件