Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy fields from one db to a different dbf
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00326203
Message ID:
00326207
Views:
28
>vfp 3.0
>
>i am copying information from fields from one database
>to another database and field names are different.
>
>what is the best way to accomplish this? copy fields
>to arrays and then use replace command?
>
>do i need to open both databases at the same time to
>do this?
>
>Thanks and have a good day.
>
>Becky

USE FROMDB
USE TODB IN 0

SELECT FROMDB
SCAN
m.TODB.fieldname1 = FROMDB.fieldname1
...
INSERT INTO TODB FROM MEMVAR

ENDSCAN

HTH
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Reply
Map
View

Click here to load this message in the networking platform