读书人

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

发布时间: 2012-02-01 16:58:19 作者: rapoo

求一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

上个帖已经回复了啊

读书人网 >C#

热点推荐