Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forcing type in SQL
Message
From
06/01/1999 18:26:32
 
 
To
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:
00173353
Views:
18
>>>>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?

Interesting, but I think it's simpler just to alter the table.

Thanks,

-Michelle
Previous
Reply
Map
View

Click here to load this message in the networking platform