SQL> create table t1 (id number(17,3));
Then inserting a value like:
SQL> insert into t1 values(99999999999999.999);Selecting from the table shows:
SQL> select * from t1;A NUMBER column's width equals the width of the heading or the width of the FORMAT plus one space for the sign, whichever is greater. If you do not explicitly use FORMAT, then the column's width will always be at least the value of SET NUMWIDTH. What we have to do,
ID
----------
1,0000E+14
SQL> set NUMWIDTH 18OR,
SQL> select * from t1;
ID
------------------
99999999999999.999
SQL> column id format 99999999999999999.999
SQL> select * from t1;
ID
----------------------
99999999999999.999
No comments:
Post a Comment