oracle 数据更新 储存过程,该如何处理
oracle 数据更新 储存过程
比如 有A表和B表 根据A表的ID 和B表的ID对比 如果能对上 则B表数据更新对应A表ID 数据 该如何做
------解决方案--------------------
比如 有A表和B表 根据A表的ID 和B表的ID对比 如果能对上 则B表数据更新对应A表ID 数据 该如何做
------解决方案--------------------
merge into a using b on (a.id=b.id)
when matched then
update set a.c1=b.c1,a.c2=b.c2