求一表现形式的SQL语句,请大家帮忙
我想将查询出的Bool型数据表现为其他形式,如将Bool的性别字段转换为男或女,表现出来,使其可看性更高。
------解决方案--------------------select    
 case when sex = true then  '男 '  
 else  '女 ' 
 end   
 from table
------解决方案--------------------select    
 case when sex = true then  '男 '  
 else  '女 ' 
 end as sex   
 from table 
------解决方案--------------------if(sex=true) 
 return  "男 "; 
 esle return  "女 ";