求助:oracle批量更新 有2个表a,b(其实是一个多表关联的select语句)我要将a表中x栏位的值更新为b表的y栏位值a和b表中都有1万笔数据,并且id一一对应update语句怎么写?update a set a.x = 这里不会写(select ...) b where a.id = b.id虚心请教,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a t1set t1.x=(select t2.x from b t2 where t2.id=t1.id)where exists ( select 1 from b t3 where t3.id=t1.id); update a t1set t1.x=(select t2.y from b t2 where t2.id=t1.id)where exists ( select 1 from b t3 where t3.id=t1.id); update a set a.x =(select y from b where a.id=b.id) --merge intomerge into a using b on(a.id = b.id)when matched then update set a.x=b.y PL/SQL登陆出空提示框 oracle数据怪现象 unix下两个oracle数据库同步问题 关于表触发与自增ID的问题 sql语句问题 java存储过程授权报错,存储过程的功能是生成pdf 小弟初次接触oracle,请各位高手帮忙,急,立刻给分 请教大哥大姐:请问再linux9server下面怎么安装4张盘的oracle9i的企业版! 请教pro*c动态方法四的问题 如何在oracle中去从1~10条记录? 求一复杂sql语句(oracle) select partition 的困惑,谢谢。
set t1.x=(select t2.x from b t2 where t2.id=t1.id)
where exists ( select 1 from b t3 where t3.id=t1.id);
set t1.x=(select t2.y from b t2 where t2.id=t1.id)
where exists ( select 1 from b t3 where t3.id=t1.id);
--merge intomerge into a using b on(a.id = b.id)
when matched then update set a.x=b.y