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: Paul Heely <pheely_at_progeny.net>
Date: Fri, 22 Nov 2002 04:23:58 -0800
Message-ID: <F001.005092FA.20021122042358@fatcity.com>


I think the number is still being stored as 1111111111, but only being displayed in E notation. When I try it I get:

scott> select * from trnid;

    TRN_ID



 111111111
 111111111
1111111111
1111111111

Elapsed: 00:00:00.00
scott>

I entered both as a number 111111111 and a character string '111111111', like you did.
Have you specified a format for the trn_id column?

--

Paul

-----Original Message-----

Sathyanaryanan_K/VGIL_at_vguard.satyam.net.in Sent: Friday, November 22, 2002 6:24 AM
To: Multiple recipients of list ORACLE-L

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: Paul Heely
  INET: pheely_at_progeny.net

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 Fri Nov 22 2002 - 06:23:58 CST

Original text of this message

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