怎么更新子表

如何更新子表表A为父表 字段a,b,c 表B为子表 d,e,f,g现欲更新表b的g字段,条件为 B.dA.a and B.eA.b And

如何更新子表
表A为父表 字段a,b,c 表B为子表 d,e,f,g
现欲更新表b的g字段,条件为 B.d=A.a and B.e=A.b And A.c='1' 
请问语句该如何写?

[解决办法]

SQL code
update Bset g='test'where (d,e) in (select a,b from A where A.c='1');