Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: comparing two table

Re: comparing two table

From: MS <qcom_at_attbi.com>
Date: 16 Jan 2003 11:42:53 -0800
Message-ID: <a2b6d46b.0301161142.12b167b4@posting.google.com>


Try this to compare table1 with table2:

 select * from table1
 minus
 select * from table2;

as well as the reverse:

 select * from table2
 minus
 select * from table1;

I assume the column order of the tables created is same, else you need to replace the '*' with the column names.

-Madhu S

"alainc" <alain2208_at_caramail.com> wrote in message news:<b05rs8$9fq$1_at_s1.read.news.oleane.net>...
> Hello,
> i need to compare two table contents in two database (replication problem)
> so i need to compare not only one column but all.
> is there something easy to do not comparing all the column with his
> conuterpart on the other database?
> because i need to compare more than one table and that will be very long to
> make the query.
>
> thanks
>
> Alain
Received on Thu Jan 16 2003 - 13:42:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US