如何不用CURSOR实现纵表转换成横表? 没有哪位大虾能帮忙?这个和精华里面的一个帖子有些不一样.那个是字符串叠加.我这个是UPDATE到不同的字段. 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a set a.x1 = (select d.y1 from (select a.name, c.y1 from (select name, y1, rank() over(partition by name order by rownum) rn from b) c, a where a.name = c.name and c.rn = 1) d where a.name = d.name)x2 ,x3 ,x4的字段写法思路相同 可以用lead()函数,写起来很罗嗦。自己写 toad 11 乱码问题 判断为空条件 请教一下jdk1.6+oracle10g+eclipse开发流程图的问题 left join 会极大的降低效率吗? c# 连接运行存储过程报这个错 ORA-01036: 非法的变量名/编号 oracle的一个赋值问题!!! OracleTNSListener启动失败。 执行PL/SQL错误后怎么才能取出发生错误的行号 关于日期格式的问题 求助,表分区存在,但是依然报错ora-02149 Oracle 10g,能够安装在Linux下的什么版本? 请教Oracle 9i的安装问题
set a.x1 = (select d.y1
from (select a.name, c.y1
from (select name,
y1,
rank() over(partition by name order by rownum) rn
from b) c,
a
where a.name = c.name
and c.rn = 1) d
where a.name = d.name)
x2 ,x3 ,x4的字段写法思路相同 可以用lead()函数,写起来很罗嗦。自己写