NUMBER(3,-1)3不是数值的个数??怎么赋值1234得出的结果是1230。。这个是四个数哦。。

解决方案 »

  1.   

    NUMBER Datatype 
    The NUMBER datatype stores zero as well as positive and negative fixed numbers with absolute values from 1.0 x 10-130 to (but not including) 1.0 x 10126. If you specify an arithmetic expression whose value has an absolute value greater than or equal to 1.0 x 10126, then Oracle returns an error. Each NUMBER value requires from 1 to 22 bytes.Specify a fixed-point number using the following form:NUMBER(p,s)where:p is the precision, or the total number of digits. Oracle guarantees the portability of numbers with precision of up to 38 digits.s is the scale, or the number of digits to the right of the decimal point. The scale can range from -84 to 127.