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:
01376533
Vues:
27
See also http://www.zimbio.com/SQL/articles/589/SQL+SERVER+SELECT+1+vs+SELECT+Interesting

Not every one agrees.

http://forums.asp.net/t/1374663.aspx

>>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 ..."
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform