General information
Category:
Coding, syntax & commands
Title:
SQL SELECT--how to create empty field of a specified type
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only