Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to change field name in SQL Select
Message
De
20/12/2012 10:14:38
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
20/12/2012 07:10:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01560255
Message ID:
01560284
Vues:
54
>Excellent, thanks for your help.

I tend to construct SQL using TEXT...ENDTEXT. If you're going to use & to 'expand' the fieldname, you may require many in larger SQL. & is slow. TEXT...ENDTEXT lets you do a lot of expanding without a lot of programming and you only use the & once.
TEXT TO lcCmd TEXTMERGE NOSHOW
Select code, department, month1 as <<"_"+dtos(DATE()) >> ;
 from File1;
into cursor file2
ENDTEXT
&lcCmd
  
BROWSE NORMAL
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform