› Fóruns › SQL e PL/SQL › UPDATE COMPARANDO DUAS TABELAS › UPDATE COMPARANDO DUAS TABELAS
4 de maio de 2010 às 8:01 pm
#93884
Participante
tenta assim:
MERGE INTO r034cpl a
USING (select b.endfil, b.numemp
from r030fil b) x
ON (a.numemp = x.numemp)
WHEN MATCHED THEN
update set a.endrua = x.endfil
where a.numemp = 12
and a.numcad = 204