Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number Field
Message
From
12/12/2000 21:02:26
 
 
To
12/12/2000 10:31:15
Julie Ball
Gardner Publications, Inc.
Cincinnati, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00452220
Message ID:
00452676
Views:
21
>I need to create a number field, (length-7, decimal,2) in a query, how do i do that. Rate is the field that i am trying to create.
>
>SELECT pdsub.*, SPACE(1) AS ratecd, SPACE(7)AS rate;
> FROM pdsub.dbf;
> INTO TABLE wkpaid.dbf
>
>

SELECT pdsub.*, space(1) AS ratecd, 00000.00 AS rate

actually creates an N(8.2) since the decimal poinmt occupies space in an N field; leave off a leading 0 to make it 7,2
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform