I'll try to explain this best I can.
I have materialized view with varchar2 column.
This is the code example:
SELECT field1 * 1000
FROM my_mv
WHERE id = 15
When I execute this from TOAD, it works just fine (I do it on numbers only ofc). But when I try to do same thing from ASP
sql = "SELECT field1 * 1000 FROM my_mv WHERE id = 15"
set rs = conntemp.Execute(sql)
I get an error
[Microsoft][ODBC driver for Oracle][Oracle]ORA-01722: invalid number
Tried to do to_number
on the column, but still the same
Maybe I wasn't clear enough. This is not an Oracle error (Oracle can preform this query with no problem because column value can be converted to number). Problem is when this is called from classic ASP, then error is thrown.
And as already said, I also tried to do
SELECT to_number(field1) * 1000
but I still get the same result