sql >> Base de Datos >  >> RDS >> Oracle

Oracle diff:¿cómo comparar dos tablas?

Prueba esto:

(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
;

Sin herramienta externa. No hay problemas de rendimiento con union all .