Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modify database tables
Message
De
22/10/1999 08:01:01
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
 
 
À
21/10/1999 14:56:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00279553
Message ID:
00279830
Vues:
11
Sheena,

In my own framework I keep a data dictionary of tables, fields, and indexes. I also keep a "sequence" number for each field in a table. The code then becomes (highly abbreviated):
SELE Field_name,field_type,field_len,field_dec;
  FROM MyDictionaryFields;
  ORDER BY nSequence;
  WHERE TABLE = m.TheTableIWant;
  INTO ARRAY A_Fields
CREATE TABLE Temp FROM ARRAY A_fields
APPEND FROM (m.TheTableIWant)
This ought to get the main ideas across.

>Hello:
>
>I'm changing the structures of my existing tables in a program
>and was wondering if anyone knew how I could position the
>fields in my database in a particular order Without having to use
>an external product i.e. database toolkit or do I have to drop columns
>add new fields and then add back the columns I dropped for positioning
>purposes?
>
>Any input would be appreciated.
>
>Thanks.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform