Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best way to find orphans - seek vs SQL
Message
De
21/11/2000 11:14:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00444141
Message ID:
00444169
Vues:
18
>>
>>I've often found a scan to be faster in VFP for this.
>>I would do it this way, however:
use table2
>>use table1 order propid in 0
>>set relation to propid into table1
>>scan for eof("table1")
>>  ** do code
>>endscan
>
>Trey,
>
>Are you sure, your code would find records from Table1, which don't have corresponding records in Table2? You're scanning Table2, so I assume, your code would find opposite.

Sorry - I was using table1 as parent and table2 as child - you confused me going the other way <g> here it is clearer
use child
use parent order propid in 0
set relation to propid into parent
scan for eof("parent")
  ** do code
endscan
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform