Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
REPLace .... or SCAN ....
Message
De
14/09/2002 08:57:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00700335
Message ID:
00700489
Vues:
11
>Hello Foxperts,
>
>Is the following code 'proper'?
>REPLACE reprints WITH reprints+1 FOR flagged="P"
>REPLACE flagged WITH "O"  FOR flagged="P"
>or should I do this:
>SCAN FOR flagged="P"
>  REPLACE reprints WITH reprints+1, flagged WITH "O"
>ENDSCAN
>
>Any comment and critique gratefully accepted.

Randy,
I'd go with Dragan's connecting 2 replaces in one or Hilmar's Update SQL. Neither would be affected with current order set. However you might be surprised to know if no index tag exists on replacement fields then it'd be much much faster (nothing surprising here - no index to update).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform