标签:using mat oracle sql div merge where value values
merge into ZQ_A A using ZQ_B b on (a.name=b.name) when matched then update set a.age=b.age when not matched then insert (a.name,a.age) values(b.name,b.age); -- 都可以省略 表名,因为表都是 第一个表 merge into ZQ_A A using ZQ_B b on (a.name=b.name) when matched then update set a.age = a.age -- 注意 delete之前要先update 非 on里面条件的栏位 delete where a.name= b.name;
标签:using mat oracle sql div merge where value values
原文地址:https://www.cnblogs.com/JerryZhang320/p/14766422.html