case 语句的用法

taidixjh 2003-10-09 11:21:59
select MAT_NM_TEMP =
case type when 'popular_comp' THEN 'Popular Computing' end
from KPLAN_L 通不过,请指点
...全文
34 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
yflag 2003-10-10
  • 打赏
  • 举报
回复
case when then 是T-SQL语法撒
oracle里有这东东吗?
这是sql server论坛还是oracle?
oracle用decode啦
podded 2003-10-10
  • 打赏
  • 举报
回复
Nickle_Final的SQL:未找到预期 FROM 关键字
Nickle_Final 2003-10-10
  • 打赏
  • 举报
回复
酱紫也可以DI
select case type when 'popular_comp' then 'Popular Computing' end MAT_MM_TEMP
from KPLAN_L
pengdali 2003-10-10
  • 打赏
  • 举报
回复
select decode(type,'popular_comp','Popular Computing') MAT_NM_TEMP from KPLAN_L
pengdali 2003-10-10
  • 打赏
  • 举报
回复
select MAT_NM_TEMP =
decode(type,'popular_comp','Popular Computing')
from KPLAN_L

decode(substr(t0.cag_no,1,1),1,'ab',2,'cd',3,'ef')

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧