Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting from a Cursor into an external .dbf
Message
De
06/04/2004 12:44:15
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
06/04/2004 11:31:39
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00892627
Message ID:
00892669
Vues:
18
>Hello,
>I have an application where I populate a cursor. The cursor has the same structure as c:\transact.dbf. What I want to do is append the contents of my cursor onto the end of the c:\transact.dbf. I looked into the insert into query but it seemed like all I could use was memvar. I am confused!!
>
>Thanks!!!
>
>MAC

As far as the structure is same I'd simply do an 'append from' :

lcFile = locfile('c:\transact.dbf')
use (m.lcFile)
append from dbf('myCursor')

In VFP8 you might as well do an insert into as :

Insert into (m.lcFile) select * from ....

In earlier versions memvar is not the only supported. It supports memvar, name, array (array might hold multiple rows).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform