Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want the table column names
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00399829
Message ID:
00399833
Vues:
14
>For the currently selected table, I want an array of the column names? How do I build an SQL to retrieve the column names?
>
>Thanks
>
>Brenda

Two ways since the table is in use. First, and easiest would be to use AFIELDS(). Second, and while not difficult it does take more code, use FCOUNT() to return the number of fields, then a FOR...ENDFOR loop to retrieve the names using FIELD(< n >). This also has the disadvantage of not telling you anything else about the fields such as data type, size, etc.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform