Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL CODE - SELECT Statement
Message
De
26/08/2003 08:10:30
 
 
À
26/08/2003 02:23:46
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:
00823214
Message ID:
00823350
Vues:
21
>Hi cecil,
>
>Unlike using NOT IN() the NOT EXIST clause does not execute an extra query (but is internally processed like a join) and therefore should be faster in most cases.
>
>
>SELECT cFileName ;
>	FROM tmpPDFFileNames a ;
>	WHERE NOT EXIST(SELECT * FROM Scan b WHERE a.cFileName = b.cFileName) ;
>	INTO CURSOR tmpPDFs
>

Actually, the NOT IN version of this query should be faster because the subquery only has to be executed once. In this version, the subquery has to be executed for each value of a.cFileName.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform