Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating base table using view with non-unique key
Message
De
24/09/1996 07:26:22
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00008407
Message ID:
00008481
Vues:
29
>Basically, what VFP seems to be "telling me" with respect to views is that once it populates a view with a set of records, it loses the context of where each record came from in the base table (i.e., the record number), so that you need a unique key to pass updates back to *any* base table from a view. What is happening now is that if I update a field in only one record in the view, *all* records with the same SSN in the base table are equally updated.
>
>By the way, I would appreciate hearing more details about the "WHERE" clause referred to in the Update Panel of the View Designer. Does VFP use the WHERE clause to determine uniqueness of a record in the base table (which has relevance to the problem mentioned above), or to only determine if specific fields have been changed by another user, or something else?
>
>Thanks again.

When you relate 2 tables, you usually are talking about cascade updates, wich means that SQL guides himself by the related key. So if you want to update one single key, you have to have some form of uniqueness in the child table wich are generally all the fields in the tuple.
HTH.
Alex.
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform