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

Home -> Community -> Usenet -> c.d.o.server -> Re: Number datatype help?

Re: Number datatype help?

From: Serge Rielau <srielau_at_ca.ibm.com>
Date: Mon, 19 Nov 2007 14:13:34 -0500
Message-ID: <5qe5iqFvbi4lU2@mid.individual.net>


CK wrote:

>> You first number has 8 digits of precision and a scale of 2 so you
>> need to declare it as (8,2) rather than (6,2).  A format of (6,2)
>> would support only digits to the left of the decimal point

>
> Close but it still accepts 654321.000 and it should not. Any other ideas?
> Thanks for your help.

May I ask WHY it should not accept it?
Truncating zeros to the right of the decimal point is not typically considered data loss...

Cheers
Serge

-- 
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Received on Mon Nov 19 2007 - 13:13:34 CST

Original text of this message

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