Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy data from table A to table B and add a field
Message
From
04/05/2004 15:28:05
 
 
To
03/05/2004 12:27:18
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00899769
Message ID:
00900901
Views:
28
Thanks with pointer form you I did the following (table name is passed to function)

1. Used SQL select statments to get existing data and save it to a table with a additional field.
2. Use ZAP command to remove existing data in existing new table
3. Use APPEND command to add existing data with new field to new table

In cases where fields have to set to zero I used the REPLACE command instead of the BLANK command with a FORclause since it need to copies of the orginal data with two values of the new field.

I can post the function if you think that would be useful.
Previous
Reply
Map
View

Click here to load this message in the networking platform