Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which command would execute faster? Seek & Do while or S
Message
De
28/03/2006 16:55:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/03/2006 13:35:02
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01108228
Message ID:
01108607
Vues:
13
>>Also.......rather than doing a SCAN/ENDSCAN or DO WHILE, you might also try
>>
>>SUM OrderAmount TO lnTotalOrder FOR Cust_ID = lcCustID
>
>Or, do the seek and then SUM while cus_id = m.lcCustID

You took my say (as my daughters would put it). I'd bet my two cents this would be the fastest... for one cus_id. If I had to do it for the whole table, then I'd surely do a select sum().

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform