如何更新子表 表A为父表 字段a,b,c 表B为子表 d,e,f,g现欲更新表b的g字段,条件为 B.d=A.a and B.e=A.b And A.c='1' 请问语句该如何写? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update Bset B.g = 'xx'where (B.d,B.e) = (select a,b from A and A.c='1') 不好使?ORA-01427: 单行子查询返回多个行 update Bset B.g = 'xx'where (B.d,B.e) in (select a,b from A and A.c='1') SQL 两个条件 查询 Streams中SCN号可以这样指定吗 关于调用参数过程中的传递参数问题 OCI程序向oracle表中插入数据导致引起表的锁,从而程序停止执行的问题(高分求) 外键的取值范围 oracle 9i 怎么备份数据库的的?进来告诉我一下吧 求助 这样创建触发器 那错了? 在线等 关于IMP的问题,给高分 怎样在sql plus中终止一个查询语句。 关于表空间 新手求助
update B
set B.g = 'xx'
where (B.d,B.e) = (select a,b from A and A.c='1')
set B.g = 'xx'
where (B.d,B.e) in (select a,b from A and A.c='1')