ITPub博客

首页 > 数据库 > Oracle > merge

merge

原创 Oracle 作者:大_米 时间:2015-02-01 16:11:18 0 删除 编辑
merge into new n using emp e
on(n.empno=e.empno)
when matched then update set n.sal=e.sal
when not matched then
insert (n.empno,n.ename,n.sal,n.comm)
values(e.empno,e.ename,e.sal,e.comm);

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30090120/viewspace-1422795/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: update
请登录后发表评论 登录
全部评论

注册时间:2015-01-03

  • 博文量
    19
  • 访问量
    36457