Change Precisssion [message #270824] |
Fri, 28 September 2007 01:52 |
ram_ocp
Messages: 49 Registered: December 2005 Location: Karnataka
|
Member |
|
|
Hi,
I have a small doubt can you help
The data in a column have values like
-2021978521
-2021424827
-2021130886
The difference between two values are very less.
But when i take the ouput of the column.I get like
-2.021E+09
-2.021E+09
As a result i am not able to select distinct values.
Can you let me know how to change the output precission to
-2021978521 from -2.013E+09 in simple select statement
Thanks
Ram
|
|
|
|
|
|
Re: Change Precisssion [message #270842 is a reply to message #270833] |
Fri, 28 September 2007 02:42 |
Frank
Messages: 7901 Registered: March 2000
|
Senior Member |
|
|
ram_ocp wrote on Fri, 28 September 2007 09:24 | Tried the above command but still gives result in exponential form
|
replace DATA_VALUE with your column name (or the alias you use in the query)
|
|
|
Re: Change Precisssion [message #270866 is a reply to message #270824] |
Fri, 28 September 2007 03:52 |
ram_ocp
Messages: 49 Registered: December 2005 Location: Karnataka
|
Member |
|
|
SQL> column mxid format 999999999999999999999
SQL> select distinct mxid from mxattr ;
MXID
----------
-2.009E+09
-2.009E+09
-2.009E+09
|
|
|
|
Re: Change Precisssion [message #270874 is a reply to message #270869] |
Fri, 28 September 2007 04:07 |
ram_ocp
Messages: 49 Registered: December 2005 Location: Karnataka
|
Member |
|
|
Thanks here is the formatted output
SQL> desc mxattrtype ;
Name Null? Type
----------------------------------------- -------- ----------------
MXNAME VARCHAR2(128)
MXID NOT NULL NUMBER(38)
MXFLAGS NUMBER(38)
MXPARENT NUMBER(38)
MXTYPE NUMBER(38)
MXDEFAULT VARCHAR2(255)
[Updated on: Fri, 28 September 2007 04:17] Report message to a moderator
|
|
|
|