本帖最后由 aoyusky 于 2015-01-04 14:52:11 编辑

解决方案 »

  1.   

    补充一下:
    select A.key1, A.key2 from  A,B,C  where A.key = B.key and A.key = C.key and B.key2 ='01' and C.del_flg ='00' and A.col1='00'
    是动态SQL 文, 条件可变的。
      

  2.   

    update t_1 A set A.col1=‘01’ where  ( A.key1, A.key2) in (select A.key1, A.key2 from  A,B,C  where  ...)
      

  3.   

    key1和key2是联合主键吗?
    update  A set col1='01'
    where exists(select 1 from  B,C  where A.key = B.key and A.key = C.key and B.key2 ='01' and C.del_flg ='00' and A.col1='00')