Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which statement is 'Better'
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01048319
Message ID:
01331839
Vues:
30
>Sergey,
>
>>It doesn't apply to EXISTS subqueries because SQL Server doesn't retrieve any data for them.
>
>That is not our experience based on examining the I/Os that occur. I'll see if I can come up with some examples against northwind later tonight.

Hi David,

It turned out that I was wrong. See EXISTS Subqueries: SELECT 1 vs. SELECT *
Quote: "The QP will take and expand all *'s early in the pipeline and bind them to objects (in this case, the list of columns). It will then remove unneeded columns due to the nature of the query."
Recomendation: Use something like "SELECT 1 ..."
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform