Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Storing of number datatype in table

RE: Storing of number datatype in table

From: Amar Kumar Padhi <TS2017_at_emirates.com>
Date: Sat, 23 Nov 2002 01:38:53 -0800
Message-ID: <F001.0050A04D.20021123013853@fatcity.com>


set it in your login or glogin file. This file is run by default when you login through sql*plus.

rgds
amar
http://amzone.netfirms.com
The best way to express yourself is to be yourself.

-----Original Message-----
[mailto:Sathyanaryanan_K/VGIL_at_vguard.satyam.net.in] Sent: Saturday, November 23, 2002 9:44 AM To: Multiple recipients of list ORACLE-L

Thank u list for ur imm resp. It was the prob with numwidth. Now I have set the num width to 25 and s working fine. But whenever i stat the sql the default is set to 9. how do i change the def numwidth??
Regards,

Sathyanarayanan

|--------+----------------------->

| | "Arup Nanda" |
| | <arupnanda_at_ho|
| | tmail.com> |
| | |
| | 22/11/2002 |
| | 19:38 |
| | Please |
| | respond to |
| | ORACLE-L |
| | |
|--------+-----------------------> >------------------------------------------------------| | | | To: Multiple recipients of list ORACLE-L | | <ORACLE-L_at_fatcity.com> | | cc: (bcc: Sathyanaryanan K/VGIL) | | Subject: Re: Storing of number datatype in | | table | >------------------------------------------------------|

The number is more than the numwidth specified. Try this

SQL> set numwidth 13
SQL> select trn_id from trnid;

Your numwidth is perhpas defined as 9; so anything of more precision is displayed as exponetial notation; internally all numbers are stored the same.

HTH Arup Nanda
www.proligence.com

> Dear List
>
> Have a look at the sql !!!
>
> SQL> create table trnid
>   2  ( trn_id number(10));
> Table created.
>
> SQL> insert into trnid(trn_id) values('1111111111');/* 10 1's inserted*/
> 1 row created.
>
> SQL> insert into trnid(trn_id) values('111111111');/* 9 1's inserted*/
> 1 row created.
>
> SQL> commit;
> Commit complete.
>
> SQL> select trn_id from trnid;
>
>    TRN_ID
> ---------
> 1.111E+09
> 111111111
>
> can anyone tell why the number(10) is stored in exp format
>
> Regards,
>
> Sathyanarayanan
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
>   INET: Sathyanaryanan_K/VGIL_at_vguard.satyam.net.in
>
> Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
> San Diego, California        -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from).  You may
> also send the HELP command for other information (like subscribing).
>
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Arup Nanda
  INET: arupnanda_at_hotmail.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).




-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Sathyanaryanan_K/VGIL_at_vguard.satyam.net.in

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Amar Kumar Padhi
  INET: TS2017_at_emirates.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Sat Nov 23 2002 - 03:38:53 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US