Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Under the gun on a deadline - SQL numeric format problem
Message
De
25/05/2006 16:49:28
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01125006
Message ID:
01125070
Vues:
16
>>This field is part of an SQL that will be saved via SDF to a text file. The problem I'm having is that it is always 16 in length, regardless of what I do to it in the SQL. It must be 12 in length and 2 decimal places. Any help greatly appreciated. Thanks!
>>
>>
>>SUM(VAL(STR(new.ee_bal,12,2))) AS ee_bal,;
>>
>
>I really wanted to write "Pull the trigger" <g>
>
>
>Anyway, for VFP 9 use CAST, for VFP8 - use
>sum(myVal + 000000000000.00)

Needed 000000000.00, but it didn't work regardless. Still get 16 in length in the result.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform