Is “NUMBER” and “NUMBER(*,0)” the same in Oracle?

前端 未结 3 1434
死守一世寂寞
死守一世寂寞 2021-02-04 17:44

In Oracle documentation it is mentioned that

NUMBER (precision, scale)

If a precision is not specified, the column stores values as given. I

3条回答
  •  情深已故
    2021-02-04 18:34

    This parts of Oracle documentation makes it absolutely clear:

    Specify an integer using the following form:

    NUMBER(p)

    This represents a fixed-point number with precision p and scale 0 and is equivalent to NUMBER(p,0).

    and

    Specify a floating-point number using the following form:

    NUMBER

    The absence of precision and scale designators specifies the maximum range and precision for an Oracle number.

    The meaning of the star precision is documented here and means the precision of 38

提交回复
热议问题