Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improving sluggish SQL
Message
 
À
20/12/1999 13:02:14
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00306158
Message ID:
00306355
Vues:
27
>Bruce,
>
>>I have some very large tables from which I have to get records NOT IN other very large tables. Code like this:
>
>>select * from table1;
>>where keyfield NOT IN;
>>(select keyfield from table2)
>
>how about
>
>USE TABLE1
>USE TABLE2 ORDER TAG keyfieldTag
>
>SET RELATION TO Keyfield INTO Table2
>
>BROWSE NORMAL FOR EOF("Table2")
>
>You might want to copy this into a temp table
>
>COPY TO Temptable *FOR* EOF("Table2")

Well, it was very fast until the COPY TO. Then it got almost completely stuck on COPY TO :(
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform