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