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: OT: PIC 9(9)V99 ??

Re: OT: PIC 9(9)V99 ??

From: Tim Gorman <Tim_at_SageLogix.com>
Date: Tue, 12 Nov 2002 18:48:29 -0800
Message-ID: <F001.00501B7A.20021112184829@fatcity.com>


Life is too short to try to remember stuff like this...

        SQL> create table x (y number(9,2));

        Table created.

        SQL> insert into x values (999999999.99);
        insert into x values (999999999.99)
                              *
        ERROR at line 1:
        ORA-01438: value larger than specified precision allows for this
column

        SQL> insert into x values (9999999.99);

        1 row created.

So, that's 9 digits in total with 7 to the left and 2 to the right...

> Chris, I wish i could remember, wait
>
> var_name number(9,2) heck i can't remember if thats a total of 9 digits
> with 2 to the right, so is it 7.2 or is it 9.2
>
> damn.
>
> joe
>
>
> Grabowy, Chris wrote:
>
> >Totally off Oracle topic.
> >
> >I am studying the mainframe layout specs for a flat file, and came
> >across this "datatype", and I just want to confirm my interpretation.
> >
> >PIC 9(9)V99
> >
> >So that's 9 digits before the decimal point?
> >
> >And then two digits after the decimal point?
> >
> >And the actual data would have a decimal point?
> >
> >So in this case, for a total of 12 characters?
> >
> >123456789.99 ?
> >
> >TIA!!!
> >
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Joe Testa
> INET: jtesta_at_dmc-it.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: Tim Gorman
  INET: Tim_at_SageLogix.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 Tue Nov 12 2002 - 20:48:29 CST

Original text of this message

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