Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the different between UPDATE and REPLACE?
Message
 
À
07/04/1998 13:37:24
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00090092
Message ID:
00090259
Vues:
38
>you are wrong:
>
>The replace command uses record locking in the same manner as the update - SQL command when you're replacing just one record. The main difference is that if you use these commands to replace more than one record the update uses multple record lock and the replace command uses a file lock. The replace command blocks more records at a time and the lock last longer than the separate record locks of the update command. The update command garantees a higher degree of concurrency, but is slower than the replace command because it has to lock each record before it is updated.
>
>For best performance: use replace
>For best concurrency in a multiuser environment: use Update - SQL
>
>I think the main reason for including the update command is that it is a ANSI SQL command. (See the differenct between the DELETE and the DELETE - SQL command)

Thank You, Walter. I stand (actually sit) corrected. I answered this from a brief check in VFP5 help - I haven't used update very much and the answer I gave was based on the info in help. It doesn't, however, go into detail as well as somebody with "hands on" experience. Regards,
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform