sql >> Base de Datos >  >> RDS >> Oracle

Problema de rendimiento al actualizar una tabla desde otra tabla

Intenta usar la combinación.

merge into old_customer_source t1
using (select t2.custid, t2.firstname, t2.lastname
         from  new_customer_source t2
      ) t2
 on (t1.custid = t2.custid)
when matched then
update set t1.firstname = t2.firstname, 
           t1.lastname = t2.lastname
;