Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add a field between others by code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01394334
Message ID:
01394353
Vues:
61
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform