Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum of the number-format in Oracle?

Tags:

oracle

plsql

I want to know what is the maximum value the number-format? For example int32 can handle 4.294.967.296 values.

like image 956
Husky110 Avatar asked Aug 12 '10 11:08

Husky110


People also ask

What is the maximum size of number data type?

THE MAXIMUM SIZE OF NUMBER DATA TYPE IS 32 BYTES..

What is the max value in Oracle sequence?

This integer value can have 28 or fewer digits. MAXVALUE must be equal to or greater than START WITH and must be greater than MINVALUE . NOMAXVALUE Specify NOMAXVALUE to indicate a maximum value of 1027 for an ascending sequence or -1 for a descending sequence. This is the default.


1 Answers

Based on this Oracle's documentation:

The NUMBER datatype stores fixed and floating-point numbers. Numbers of virtually any magnitude can be stored and are guaranteed portable among different systems operating Oracle, up to 38 digits of precision.

The following numbers can be stored in a NUMBER column:

  • Positive numbers in the range 1 x 10-130 to 9.99..9 x 10125 with up to 38 significant digits
  • Negative numbers from -1 x 10-130 to 9.99..99 x 10125 with up to 38 significant digits
  • Zero
  • Positive and negative infinity (generated only by importing from an Oracle Version 5 database)

There's also this other documentation which summarizes very well the types and precision for numeric and other data types as well.

like image 157
Sachin Shanbhag Avatar answered Sep 19 '22 19:09

Sachin Shanbhag