Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UNION in local view
Message
De
30/12/2003 12:47:18
Walter Meester
HoogkarspelPays-Bas
 
 
À
30/12/2003 11:14:48
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:
00862837
Message ID:
00862896
Vues:
17
>What makes me nervous about this is: Does the view thus created correctly update the base tables? Are any special settings required to achieve this?
>
>I mean, if you vertically combine two tables, will VFP keep track of which table each record came from?
>
>Or can you only create R/O views safely, if you use UNION?

you have to define the PK field and source table. In fact it does not matter how the view got its contents. If you're writing data, if is checking if a records was update, deleted or inserted and uses the PK field and table settings in the view definition to cascade it to the underlying tables.

IOW, there is not neccesarely a direct relation between the SQL statement and the table which gets updated.

Walter,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform