Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add a field between others by code
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01394334
Message ID:
01394353
Views:
60
This message has been marked as a message which has helped to the initial question of the thread.
>I want to write an update program to update a table one of my products and i need to add a field between field 4 and 5,How?
>i write this code but it add that field at the bottom of fields :
>
>Alter Table contacts Add cdate c(10)
>
In order to do that, you've to

  1. create new table with required structure
  2. append records from the old one
  3. delete old table
  4. rename new one

It gets much more complicated if the table in question belongs to DBC. The Stonefield Database Toolkit (SDT) can handle it for you.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform