Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
APPENDing FROM a view
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00102393
Message ID:
00102821
Vues:
27
>>>Is there anyway to use APPEND FROM using a view instead of another table? Or should I just use something like a loop and INSERT INTO?
>>
>>I tend to do it this way (assuming the table and view are the same structure).
>>
>>
>>SELECT * FROM myView INTO ARRAY laMyArray
>>
>>IF _TALLY > 0
>>   INSERT INTO MyTable FROM ARRAY laMyArray
>>ENDIF
>>
>>
>>HTH
>
>Sorry for interrupting. There is one problem with this approach. When you SELECT from View, VFP tends to go to actual tables, i.e. if user changed view records but didn't issue Tableupdate() yet, then newly selected_from_view recordset will not contain the last changes.

Ed,

True. When I have done this, I do not append from modified data... I couldn't see why I would want to change data and then read the changed data into another file. I can easily see why I would have a view to get a set of records and then send them off to another table...
Menachem Bazian, CPA
President
BC Consulting Services, Inc.
973-773-7276
Menachem@BazianCentral.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform