Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT SQL Problem?
Message
De
29/07/1997 08:22:16
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
 
À
29/07/1997 07:32:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00042085
Message ID:
00042092
Vues:
27
>Hi all,
>
>When I do a SELECT SQL, can I use a function to do calculation and return to a cursor? Example: SELECT cnoee, dmysum(yamt1+yamt2+...) from dpayrslt. If yes, how does the SQL knows what type and how many decimal it should create for the second field?
>
>Actually I have done the above and the second field it returns currency which I wants. When I change the SQL to SELECT dpayrslt.cnoee,demas.cname,dmysum(yamt1+yamt2+....) from demas,dpayrslt where demas.cnoee=dpayrslt.cnoee, the second field becomes numeric 1? Why and how I overcome this?
>
>Thanks in advance.

For determining the length of a column, a sql statement is executed twice for the first record, so if record say returns 1. the length will be set to 1.

you can try something like mycolumn+000000.00
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform