Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing 2 tables
Message
De
20/09/2007 17:33:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01255839
Message ID:
01255855
Vues:
22
>I have 2 database with mulitple tables. These are suppose to be identical (ie: backup)
>
>What way would be the most efficient to compare 2 tables to make sure that all fields in each record is the same in both tables.
>
>Thank you in advance for suggestions to accomplish this.

If you need to only know data is exactly same then you could do a select ordered by primary key into 2 new tables. Compare dbf (and fpt) with:

filetostr("table1.dbf")==filetostr("table2.dbf")

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform