急100分!求update语句怎么写? update a set a.a=0 from a,b where a.id=b.aid and b.c1=1 and b.c2=1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a set a= (select 0 from b where a.id=b.aid and b.c1=1 and b.c2=1)where exists (select 0 from b where a.id=b.aid and b.c1=1 and b.c2=1) singlepine(小山) 怎么跑到oracle版来了啊 表b 上还有c3 c4 c5 上的值为可选(有的为空,有的有值) to:jiezhi(风满袖) ( ) 信誉:137 俺也偶尔到处跑跑,早就知道你在这里很牛,特地过来瞧瞧。在.net版三星、oracle版四星,总榜第25,的确很厉害,俺佩服的很,还请多指教哦^_^ update a set a.a = 0 where exists (select 1 from b where a.id=b.aid and b.c1=1 and b.c2=1) update a set a=0 where a.id in (select aid from b where b.c1=1 and b.c2=1) update a set a=0 where a.id in (select aid from b where b.c1=1 and b.c2=1) 這個可以實現結果 楼上的方法对啊update a set a=0 where a.id in (select aid from b where b.c1=1 and b.c2=1) update 表a set a=0where exists (select 1 from 表b where 表b.c1=1 and 表b.c2=1 and 表b.aid = 表a.id) 怎么用sql比较2个表中1个相似字段,将不同的值挑出来 求使用率,sql语句。 alce查询数据的问题 帮忙优化sql 关于ORACLE触发器监听表字段的修改(高分回报)在线等待-- oracle表中数据修改问题 问下,ORACLE有没有生成重复字符串的函数???? 巨多oracle开发、管理书籍! 请教:由于硬盘故障,数据全部毁灭,我换了一个硬盘,重装了Oracle8.17,请问如何将原先备份在磁带机上的数据恢复出来,最好能提供相关代 请问各位师傅:表名的最大长度是多少?如何设置?谢谢!本人不甚感激! 一个有部门/日期/类别多个查询条件的sql语句怎么写? Oracle结构
where exists (select 0 from b where a.id=b.aid and b.c1=1 and b.c2=1)
俺也偶尔到处跑跑,早就知道你在这里很牛,特地过来瞧瞧。在.net版三星、oracle版四星,总榜第25,的确很厉害,俺佩服的很,还请多指教哦^_^
update a set a=0 where a.id in (select aid from b where b.c1=1 and b.c2=1)
where exists (select 1 from 表b where 表b.c1=1 and 表b.c2=1 and 表b.aid = 表a.id)