Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Define fieldname
Message
De
14/04/2006 16:12:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Define fieldname
Divers
Thread ID:
01113784
Message ID:
01113784
Vues:
60
SQL SELECT allows for creation of new field names using AS clause, as in

select fieldname as newfieldname

This works easily when the newfieldname is know when the code is written, but how can we cause the newfieldname to be a variable as in

newfieldname = "newname"
select fieldname into &newfieldname

All my attempts at macro substitution or other techniques have failed.
Is my objective possible?

Thanks for any help.

- Don
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform