关于select select decode(xh, 1, 1, 2, 2, 3, 3, 4, 4, 5) from cjjlqq; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from cjjlqqxh12345select sum(seg1) seg1, sum(seg2) seg2, --- sum(seg5) seg5from (select decode(xh,1,xh,0) seg1, decode(xh,2,xh,0) seg2 ... decide9xh,5,xh,0) seg5from table) 查询语句,支持用select decode(xh, 1, 1, 2, 2, 3, 3, 4, 4, 5) from cjjlqq; 如果不是固定的话,那就用函数或过程,用动态SQL来处理, oracle客户端连接服务器正常,查询超时 dao.executeQuery() 执行第一次没问题 第2次就报数据类型转换异常 java连接oracle问题 oracle按时间段找出某个字段中所有0开始0结束的数,有几组 为什么不能调整system表空间和RBS的数据文件大小啊??请高手指点啊 问一个关于sql plus的基础问题 游标与存贮过程 急问!!order by 影响速度的问题!!! 如何备份30G地数据库到10G硬盘 oracl导出导入问题 为什么不能安装ORACLE 郁闷
xh
1
2
3
4
5select
sum(seg1) seg1,
sum(seg2) seg2,
---
sum(seg5) seg5
from
(
select
decode(xh,1,xh,0) seg1,
decode(xh,2,xh,0) seg2
...
decide9xh,5,xh,0) seg5
from
table
)
select decode(xh, 1, 1, 2, 2, 3, 3, 4, 4, 5) from cjjlqq;