Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL SELECT--how to create empty field of a specified type
Message
From
07/07/2006 22:27:35
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL SELECT--how to create empty field of a specified type
Miscellaneous
Thread ID:
01134627
Message ID:
01134627
Views:
75
I want to do something like this:

SELECT 0 AS MyNewCurrencyColumn FROM MyTable INTO MyCursor

but I want MyNewCurrencyColumn to be a currency type.
If there were any currency columns in the table, I could do this:

SELECT SomeCurrencyColumn * 0 AS MyNewCurrencyColumn FROM MyTable INTO MyCursor

But what if there are no currency columns in the table?
Is there anyway to select a literal and use the AS clause and specify the data type?

Thanks
Next
Reply
Map
View

Click here to load this message in the networking platform