Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UNION in local view
Message
From
30/12/2003 12:47:18
Walter Meester
HoogkarspelNetherlands
 
 
To
30/12/2003 11:14:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00862837
Message ID:
00862896
Views:
18
>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,
Previous
Reply
Map
View

Click here to load this message in the networking platform