日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學無先后,達者為師

網(wǎng)站首頁 編程語言 正文

ORACLE存在就修改 不存在就新增(注意更新和新增語法不同于常規(guī)語法)

作者:聽風又看雨 更新時間: 2023-10-14 編程語言
MERGE into k_mingd_ncc_log t1
        USING (select #{pkName} as pkName from dual) t2
        ON (t1.pkName=t2.pkName)
        when matched then
        update set t1.code=#{code},t1.ResultMsg=#{ResultMsg},
        t1.RequestBody=#{RequestBody},t1.lastTime=#{lastTime}
        where t1.pkName=t2.pkName
        when not matched then
        insert (
		pkName,
		code,
		ResultMsg,
		RequestBody,
		taskName,
		lastTime) values (
		#{pkName},
		#{code},
		#{ResultMsg},
		#{RequestBody},
		#{taskName},
		#{lastTime}
		)

原文鏈接:https://blog.csdn.net/csh_on_route/article/details/122948295

  • 上一篇:沒有了
  • 下一篇:沒有了
欄目分類
最近更新