运维网's Archiver
论坛
›
Oracle运维
› oracle PL/SQL里给字段起别名
轻轻的
发表于 2018-9-13 13:49:43
oracle PL/SQL里给字段起别名
select case TianQi
when 1 then '晴天'
when 2 then '阴天'
when 3 then '小雨'
end as "别名"
from tb
--上句中的给字段起别名,可以是end 别名,可以是end as 别名,也可以是as "别名",使用MSSQLSERVER的用户可要小心了,不支持单引号哦,所以不要写成 end as '别名'
页:
[1]
查看完整版本:
oracle PL/SQL里给字段起别名