Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL doesn't format the way I want
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00484563
Message ID:
00484720
Vues:
22
>>>>Well, it creates now N 5 for both fields :( So, it's not that easy, as I hope...
>>>
>>>Well, can't find anything else... Looks like you'll have to mess with SET DECIMALS after all... :(
>>
>>Hi Sylvain,
>>
>>I was hoping to use just Query, without transformation after it (XForm). But this seems to be unresolved dilemma. If I would do it in a Query, I have to set decimals to 0 and then restore it back. I should use some property of global object... It becomes quite complicated.
>
>Nadya,
>
>What's the requirement for having this as a numerical value? It would seem to me that these sort of values can't be used in any sort of calculation, and the rule of thumb in these sort of instances is to use a character data type.

This is the format, the customer wants. Actually, this customer needs comma-delimited file, so the field length is not that important (e.g. it could be Numeric 5), but it has to be Numeric.

I think, Yuri gave the solution, which I'm going to use (I've just went to our server through PCAnywhere and implemented it). Gavin also gave the workable solution, so I'll keep this idea in mind for the next time.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform