17,378
社区成员
发帖
与我相关
我的任务
分享merge into usermc_cache_t a
using (select '8000000044' as sid1, '000005' as mcid1, 'U' as oprtype1, sysdate as oprdate1 from dual) b on(a.sid=b.sid1 and a.mcid=b.mcid1)
when MATCHED then update set oprtype=b.oprtype1,oprdate=b.operdate1
when not matched then insert(a.sid,a.mcid,a.oprtype,a.oprdate) values(b.sid1,b.mcid1,b.oprtype1,b.oprdate1)