Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Foxpro2.x
Message
De
27/08/2002 18:07:03
 
 
À
27/08/2002 12:53:17
Steven Herbin
SNH Computing Corporation
Swan Lake, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00693772
Message ID:
00694266
Vues:
11
OOPs,
I guess I should have viewed the whole thread before answering (the problem with being behind a couple days). On the other hand, I guess we just validated each other.

Rick

>>hi all:
>>
>>I was wondering if there is a command or some code that I can use to add fields into an existing table.
>>
>>
>>thanks.
>
>Just a stab ... this is pseudocode you would have to look up the syntax:
>
>Select *, ;
> (value) as < < new field name > >, ;
> (value) as < < new field name 2 > > ;
> from oldtable ;
> into table newtable
>
>close data all
>rename oldtable to < < backup name > > && you can never be too safe
>rename newtable to oldtable
>use newtable (using oldtable name) in select(0)
>index on ... tag ... , etc.
>
>In the above, the values in the select statement should be the correct type and picture for the new fields:
>0000000.00 for a numeric -- just adjust the value to the size you want,
>space(10) for a character -- adjust the number of spaces for the size
>.t. for a logical, etc.
>
>HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform