Question

When I request my Oracle database with sqlplus, all numbers are rounded. For example:

-1.238E+10 instead of -12381762117.99

How can I get the right value?

Was it helpful?

Solution

Use COLUMN FORMAT command:

SQL> select -12381762117.99 from dual;

-12381762117.99                                                                 
---------------                                                                 
     -1,238E+10                                                                 

SQL> col x format 99999999999999999.99
SQL> select -12381762117.99 x from dual;

                    X                                                         
---------------------                                                         
      -12381762117.99 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top