Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to rename 'exp_65' in query?!
Message
De
20/12/1997 10:02:20
 
 
À
19/12/1997 20:10:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00067345
Message ID:
00067383
Vues:
23
>As using prototyping, the query VIEWS need to save many times...
>
>But the exp_## will change to new name after save....
>
>That's means I need to save all report again to make it work....
>Or don't use the exp_## field..... ~_~'
>
>

>

>Merry Christmas and

>Happy New Year!!

>

>
>



You can use the AS keyword to change the default exp_xx to something a little more meaningfull. For instance if your using the View/Query Designer in the expression builder you can put:

COUNT(table.field1) AS nCount
or
(table.field1+table.field2) AS nTotal

and if you are handcoding the viw/query you can use the same syntax such as:
SELECT COUNT(table.field1) AS nCount, (table.field1+table.field2) AS nTotal;
   FROM table
Dave,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform