Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing type in SQL
Message
From
06/01/1999 15:43:58
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00173132
Message ID:
00173306
Views:
23
>>>Is there some way to force the type of field in a table created by SQL? I know with currency, you can do $0.00 AS ... But what about the other types.
>>>

CREATE CURSOR IntegerCursor (Field1 I) && or any type you wish.
APPEND BLANK

SELECT SomeFieldNames, Field1 AS MyNewFieldOfAnyType ;
FROM SomeTable, IntegerCursor ;
INTO CURSOR Result

No join condition required. Does that work for you?
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform