Pular para o conteúdo

Fóruns SQL e PL/SQL UPDATE COMPARANDO DUAS TABELAS UPDATE COMPARANDO DUAS TABELAS

#93883
Miro
Participante

    ele nao reconhesse o b.endfil

    [quote=”diegolenhardt”:3f18nuw7]o alias “b’ não deveria estar dentro do parentese?

    assim…

    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
    [/quote]