Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What to do when user SQL Selects too much?
Message
 
 
À
20/03/2006 00:40:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01105674
Message ID:
01105783
Vues:
20
>
>
* This might help
>* If you set it to a large number and there are fewer you just get the fewer rows
>* e.g. if you set TOP 100 and there are only 20 rows, you get 20 rows:
>SELECT TOP nnnn ;
>  ...
I thought about using TOP nnn but my understanding (and maybe I am wrong) of how VFP selects them is by preselecting ALL records meeting WHERE and then selecting the nnn of those. Therefore, I was concerned that TOP will slow down the SQL Select considerably. I know I should test it before making assumptions.

Thank you.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform