Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count to
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01272696
Message ID:
01272698
Vues:
12
>it takes a long time before the two messageboxes below
>
>(more than 1 minute)
>
>
>= MESSAGEBOX ("before count")
>
> SELECT CL
> COUNT TO IMP_SELECT
>
> = MESSAGEBOX ("after count")
>
>the table has about 10,000 records
>
>Is the a better way to count records ?

Do you have filters affecting the speed?

The other way would be

select count(*) from MyTable into array laCounts

?laCounts[1]

but this would not respect the changes made to the table if it's in buffered mode nor would it respect current filters.
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