Oracle
 sql >> Database >  >> RDS >> Oracle

oracle diff:come confrontare due tabelle?

Prova questo:

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

Nessuno strumento esterno. Nessun problema di prestazioni con union all .