› Fóruns › Banco de dados Oracle › No SQL Server, funciona perfeitamente, só que no Oracle 11G › No SQL Server, funciona perfeitamente, só que no Oracle 11G
29 de abril de 2011 às 10:45 pm
#99014
Participante
update tabelaA set tabelaA.campoA='70'
from tabelaA,tabelaB
where tabelaA.campoK=tabelaB.campoY
Acho que assim funciona tambem:
update tabelaA set tabelaA.campoA='70'
from tabelaA
where exists(
select * from tabelaB
where tabelaA.campoK=tabelaB.campoY
)