I found a very trouble problem in database development. My coding is only retrieving data from database and then displaying them. The SQL command is "Select * from test". When the data type is numeric, data values all are retrieved to be ZERO. But others are correct. When I tried to use "Select to_number(amt) from test", it can retrieve the correct value ( not '0'). Why???
My system environment is:
Database: Oracle 8i
Thanks for your attention and help!!!
I think this query will help you.
select nvl(amt,0) from test;
Thanks for your reply.
I tried your sql command, but all displayed are blank. Also, I tried to run "select * from test" in Oracle ODBC test, it can display correct values, not all are zero.
Is it the front-end software problem?
Click Here to Expand Forum to Full Width