Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALTER TABLE
Message
From
15/05/1998 14:28:55
 
 
To
15/05/1998 14:15:32
Herb Mann
Unified Resources, Inc.
Houston, Texas, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00099807
Message ID:
00099813
Views:
17
>I need to be able to alter field names in an existing table populated with data. It appears that ALTER TABLE ALTER COLUMN will permit you do anything except that.
>
>To be clear, I import customer data from Excel and then have to make it conform to my program's table specifications. I have been able to change field widths, change character to numeric, etc, but I need to change client A,B,C field names to Custname, Address, etc without affecting the data.
>
>Any thoughts would be appreciated.
>
>--Herb Mann

You can use
ALTER TABLE ADD COLUMN newcolumnname ...
REPLACE ALL newcolumnname With oldcolumnname
ALTER TABLE DROP COLUMN oldcolumnname
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform