求一SQL语句关于改变列名,该如何解决

求一SQL语句关于改变列名selectcasewhensextruethen男else女endfromtable如何使其列名成为性别,即as写在

求一SQL语句关于改变列名
select  

case   when   sex   =   true   then   '男 '  
else   '女 '
end

from   table

如何使其列名成为性别,即as写在哪

[解决办法]
select

case when sex = true then '男 '
else '女 '
end as xxx

from table
[解决办法]
select

case when sex = true then '男 '
else '女 '
end as 性别

from table

上个帖已经回复了啊