Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying from one database to another
Message
From
16/09/2003 22:07:33
 
 
To
16/09/2003 21:25:09
Jordan Pastourel
Worksafe Management Systems
Toowong, Australia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00829703
Message ID:
00829712
Views:
23
>>>Hi all,
>>>what i am trying to do is copy the data from one database to another. what i do is work out if one has the same table as the other, and if it does i then copy the information from the corresponding fields into the new database.
>>>my issue is, when you append blank in the new database and issue the replace statement, how do you specify from which database it comes from?
>>>
>>>thanks,
>>>Jordan
>>
>>Can't you just use APPEND FROM to copy the entire table in one command? As to the origin, I think you can specify the full path.
>
>i can't just APPEND FROM as there might be extra fields in either of the tables. i am copying just the fields that are similar to both.
>can i use the DATABASENAME!tablename.fieldname syntax in the replace statement?

Just a reminder that APPEND FROM does have a FIELDS clause that lets you name the specific fields.
Previous
Reply
Map
View

Click here to load this message in the networking platform