Oracle数据库合并表内容

--合并两张表的内容
merge into new_table using old_table on (new_table.id = old_table.id)
when matched then
  update newtable ....
  when not matched then
  insert new_table ...

类似触发器

posted @ 2020-02-16 21:23  admin_jh  阅读(1161)  评论(0编辑  收藏  举报