解决方案 »

  1.   

    如果你只需要update就不用merge,用update来实现吧:update t1 set t1.c1='xxx' where exists (select 1 from t2 where t1.c2=t2.c2)
      

  2.   

    用merger语句时,是可以不写when not matched then的。但和数据库的版本有关系,前提是10g才行的。
      

  3.   

    ORACLE9i中,使用merge into必须同时指定UPDATE 和INSERT关键词,到了10g才是可选的
      

  4.   

    在这句后面 when not matched then--直接写一句没用的就可以了,比如update t set t.re = t.re