Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL formatiing question
Message
De
20/07/1999 19:26:13
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
20/07/1999 13:40:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00243666
Message ID:
00243907
Vues:
28
>Hi,
>
>what is the best way to 'force' SQL to formatt a numeric field to a certain width and decimals? For example, suppose I have QTY as 14,4 field and PRICE as an 14, 4 also. when I do a select QTY * PRICE as TOTAL, it ends up as a 20, 4 field when all I may really want is another 14,4 or even a 10,2 depending on what I'm doing. This gets even more complicated when using UNION between varying length fields in different cursors.
>
>Ideas?

No ideas, just old Indian tricks:

select 000000000.0000+qty as qty, etc, etc.

This works ever since 2.0

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform