tanhu

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

 

merge into test_table t1 using (select 'zhangsan' username,'/root/test' path, 'this is test' description from dual) t2 on (t1.path = t2.path) when matched then update set t1.path = t2.path, t1.username = t2.username, t1.description = t2.description when not matched then insert (path, username, description) values (t2.path, t2.username, t2.description)

posted on 2020-08-20 15:11  tanhu  阅读(306)  评论(0编辑  收藏  举报