The Oracle NUMBER data type has a maximum length of 38 bits, including the decimal point and decimal places: 38 bits for the integer part and 128 bits for the fractional part. Precision is the number of digits that can be stored after the decimal point and ranges from 0 to 128. When choosing the appropriate length, consider data range, accuracy requirements, and storage space.
The length of the NUMBER data type in Oracle
The NUMBER data type is used to store numeric values in the Oracle database Common data type. Its length can vary depending on the size and precision requirements of the data.
Maximum length
The maximum length of the NUMBER data type is 38 bits, including the decimal point and decimal places:
Precision and range
Precision refers to the number of digits that can be stored after the decimal point. The number of decimal places can range from 0 to 128.
The NUMBER data type supports the following range:
Precision Example
Choose the appropriate length
When choosing the appropriate length for the NUMBER data type, you should consider the following factors:
Note:
The above is the detailed content of What is the length of number in oracle. For more information, please follow other related articles on the PHP Chinese website!