Oracle
 sql >> Base de Dados >  >> RDS >> Oracle

oracle diff:como comparar duas tabelas?


Tente isto:
(select * from T1 minus select * from T2) -- all rows that are in T1 but not in T2
union all
(select * from T2 minus select * from T1)  -- all rows that are in T2 but not in T1
;

Nenhuma ferramenta externa. Sem problemas de desempenho com union all .