update t1
set t1.a='aaa'
where t1.b in (select b from t2)
and t1.c in (select c from t2)
set t1.a='aaa'
where t1.b in (select b from t2)
and t1.c in (select c from t2)
解决方案 »
- 有一个SQL语句不知道怎么写 拜托大家帮帮忙 在线等~~~一定是我能付得最高分
- linux 双机热备客户端连接时好时报错:12514无监听程序
- Oracle11G的5个小问题
- 各位高手,小弟求书
- 我要对oracle数据库的表删除,修改等记录进行保存
- 在Redhat7.3下安装oracle9.2必须先安装jdk吗?
- 当一列计算字段(含除法) 除数为零,我可以将这一计算列的值设为零吗?
- <<超出游标最大数>>是怎么回事?
- 日期问题,请指教!
- 两个oracle数据能否插入
- 急急急!关于日期格式,千分秒格式如何表示?马上给分
- 如何删除aix4.3下的oracle7.3.4实例!目的:不重装系统、oralce,重建一个新库。
where t1_b(+) = (select b from t2)
and t1_c(+) = (select b from t2);
set t1.a = t2.a
from t1, t2
where t1.b = t2.b and t1.c = t2.c
set t1.a = t2.a
from t1, t2
where t1.b = t2.b and t1.c = t2.c写成
update t1
set t1.a =(select t2.a from t2 )
exists
(select 1 from t2 where t1.b = t2.b and t1.c = t2.c);
用exists比较快