› Fóruns › SQL e PL/SQL › UPDATE COMPARANDO DUAS TABELAS › UPDATE COMPARANDO DUAS TABELAS
4 de maio de 2010 às 7:58 pm
#93883
Participante
ele nao reconhesse o b.endfil
[quote=”diegolenhardt”:3f18nuw7]o alias “b’ não deveria estar dentro do parentese?
assim…
[/quote]
MERGE INTO r034cpl a
USING (select b.endfil
from r030fil b)
ON (a.numemp = b.numemp)
WHEN MATCHED THEN
update set a.endrua = b.endfil
where a.numemp = 12
and a.numcad = 204