Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to update a field?
Message
 
À
09/07/2002 23:43:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00676899
Message ID:
00676914
Vues:
22
>I am a VFP7 user. I have a database with approx 50,000 records.
>The "posted" field has the month/year that each transaction was posted (to the acctg ledger).
>
>At the end of this month, I will issue the command:
>
>REPLACE ALL posted WITH 'JUL02' FOR EMPTY(posted)
>
>Wow! is it slow. Can anyone help me optimize the operation?
>
>Thanks, Randy

Rabdy,

Create an index on Posted and do this;
REPLACE Posted WITH "JUL02" FOR Posted = SPACE(LEN(Posted))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform