Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Comparing Tables?
On Thu, 13 Nov 1997 08:34:30 GMT, mhunter_at_iadfw.net (M. Hunter) wrote:
> Is there an Oracle command or utility to compare the data in 2
>tables (same structure) and report any differences.
> Thanks in Advance
Try
SELECT * FROM table1
MINUS
SELECT * FROM table2;
followed by
SELECT * FROM table2
MINUS
SELECT * FROM table1;
Of course, if the tables aren't exactly identical, with the columns created in the same order, you will have to replace '*' with the column list.
http://www.tswi.com
http://www.indusgroup.com
Replace domain name with the domain from the first URL before replying via email! Received on Thu Nov 13 1997 - 00:00:00 CST
![]() |
![]() |