Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the number of records a query will produce...
Message
 
 
À
12/10/1999 03:51:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00275310
Message ID:
00275338
Vues:
29
>HI...
>I want to get the number of records from a query eg...
>SQLEXEC(h,'select * from styles')
>
>How can I see the number of rows it will retrieve without
>actually fetching the rows.
>
>I know I can use selec count(*) from styles
>
>But it's an extra query.
>
>I need this because if a user sets a filter that returns a large number of values I want to give a warning
>because of performance reasons.
>
>What's the most effiecient way to do this...

SELECT COUNT(*) using the same where clause, etc., is the only way to determine this.
Mark McCasland
Midlothian, TX USA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform