Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Commands for insert record(s) to multiple tables
Message
De
05/07/1998 11:32:37
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00114310
Message ID:
00114331
Vues:
21
>Josh told me that although "SELECT .... UNION SELECT ...." can join the result of two tables but it couldn't help to insert a record to two tables. I tried to insert a record to a view which was created by 'SELECT .... UNION SELECT ...'. When I insert a record, both of the tables could be inserted except the keyfield. Although I used "CURSORSETPROP" to set the keyfield updatable, I couldn't input the data to the tables.
>
>Is there a way to insert multiple tables with a simple command(s)?
>
>Sunny
Are you using a view that is created from two or more tables? If so, then you have to use the DBSETPROP function instead of the CURSORSETPROP. The two have mostly identical properties. There is an excellent example in the the Developer's Guide (Updating Multiple Tables in a View, page 202).
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform