Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to add a column at a particular position?
Message
De
27/05/2005 17:00:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Database:
Visual FoxPro
Divers
Thread ID:
01018285
Message ID:
01018290
Vues:
17
>I can use "alter table add column" to add a new column at the end of the table column definition. Is there a way to add the new column at a particular position, such as before or after a certain existing column?
>
>Thanks!

I think, not with ALTER TABLE - apparently, the column position is deemed irrelevant.

You might, however, do a CREATE TABLE and then use APPEND FROM, for example. See also COPY STRUCTURE EXTENDED.

Personally, in Bata/Bolivia I make all database changes manually, in an empty database (i.e., none of the tables has records), and then I run a process, at midnight, that basically does an APPEND FROM for each table, into the new (empty) structure.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform