oracle的merge

merge into TBWKRECMAINTAINFUNDINFO t
   using (select 3 as fid, 456 as OPTYPENUM, 2 as recyear, 2 recnum from dual) t1
   on(t.fid = t1.fid)
    when not matched then
    insert(FID,OPTYPENUM,recyear,recnum) values(3, 3, 3, 3);

猜你喜欢

转载自dpn525.iteye.com/blog/2036461