sql 如下
select
(case when t.C810000005 when '查询' then t.C800010007 when '专题' then t.C800010009 when '资源' then t.C800010016 else 0 end) as 反馈次数 from aaa
select
(case when t.C810000005 when '查询' then t.C800010007 when '专题' then t.C800010009 when '资源' then t.C800010016 else 0 end) as 反馈次数 from aaa
解决方案 »
- 如何恢复oracle表名
- oracle如何查询大于当前日期的数据(当前日期取0点)
- sql 不等於跟null為什麼不能同時抓出?
- 求救:SQL*Loader-500: Unable to open file
- 求检索表的某一字段上相同数据的sql语句
- 一道及其变态的Oracle期末考试题,唯有高手能解答呀!!!
- 求SQL查询某两个或多个表中是否包含有同名的字段
- Oracle异常处理哪些方法?
- 才鸟问题,创建表时提示ora-01950表空间‘system’无权限
- ★★★誰有相应对SYSDATE操作格式化说明,以及oracle 里DATE的相应api???
- 关于一个SQL语句,困惑了,求指导
- oracle 存储过程
when t.C810000005 = '专题' then t.C800010009
when t.C810000005 = '资源' then t.C800010016
else 0 end as 反馈次数
from aaa
select
(
case t.C810000005
when '查询' then t.C800010007
when '专题' then t.C800010009
when '资源' then t.C800010016
else 0
end) as 反馈次数 from aaa