Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View update criteria
Message
De
21/01/2002 11:19:30
 
 
À
21/01/2002 06:13:50
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00606663
Message ID:
00607789
Vues:
29
>>>I noticed that the update criteria in the view designer defaults to "Key field and modified fields".
>>>
>>
>>The question is really a matter of how to handle update conflicts. If modified fields are included in the WHERE clause, the new record will not overwrite the old one because the old one won't be found. If just the PK is used, the last record always wins.
>
>Interesting. However, I thought that VFP would automatically compare old with new values. Does this not apply to views?
>
>Hilmar.

VFP will compare old with new values depending on the buffering setting. When a view uses changed fields in the WHERE clause, it will use the OLDVAL() function to build the SQL statement it uses internally when the view performs its updates.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform