Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Under the gun on a deadline - SQL numeric format problem
Message
From
25/05/2006 16:12:41
 
 
To
25/05/2006 15:16:43
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01125006
Message ID:
01125042
Views:
17
>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,;
>
How about
SELECT ....,SUM(new.ee_bal) AS ee_bal.......
INTO CURSOR myCursor READWRITE

ALTER TABLE myCursor ALTER ee_bal n(12,2)
Previous
Reply
Map
View

Click here to load this message in the networking platform