0% found this document useful (0 votes)
18 views

Data Type

VARCHAR2 is a variable length character string with a maximum length size in bytes. Numbers can specify precision and scale. Dates have a valid range from January 1, 4712 BC to December 31, 9999 AD.

Uploaded by

Abu Salim
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Data Type

VARCHAR2 is a variable length character string with a maximum length size in bytes. Numbers can specify precision and scale. Dates have a valid range from January 1, 4712 BC to December 31, 9999 AD.

Uploaded by

Abu Salim
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Datatype Max Size: PL/SQL

Max Size: Max Size: Max Size:


Description Oracle Subtypes/
Oracle 8 Oracle 11g PL/SQL
9i/10g Synonyms
Variable length
4000
character string having 4000 bytes 32767 bytes
VARCHAR2(s bytes 4000 bytes STRING
maximum length size minimum is minimum is
ize) minimum minimum is 1 VARCHAR
bytes. 1 1
is 1
You must specify size
Now deprecated
(provided for backward
compatibility only)
VARCHAR is a
VARCHAR - - -    
synonym for
VARCHAR2 but this
usage may change in
future versions.
2000
Fixed length character 2000 bytes
bytes 32767 bytes
data of length size Default 2000 bytes
Default Default and
bytes. This should be and Default and
CHAR(size) and minimum CHARACTER
used for fixed length minimum minimum size
minimum size is 1
data. Such as codes size is 1 is 1 byte.
size is 1 byte.
A100, B102... byte.
byte.
NUMBER(p,s) Number having The The The precision p Magnitude fixed-point numbers:
precision p and scale precision precision can range from 1E-130 .. DEC
s. p can p can 1 to 38. 10E125 DECIMAL
range range NUMERIC
from 1 to from 1 to The scale s can maximum
38. 38. range from -84 precision of floating-point:
to 127. 126 binary DOUBLE PRECISION
The scale The scale digits, which FLOAT
s can s can is roughly binary_float (32 bit)
equivalent
to 38
decimal
digits

The scale s
can range
from -84 to
binary_double (64 bit)
127.
integers:
For floating
range range INTEGER
point don't
from -84 to from -84 INT
specify p,s
127. to 127. SMALLINT
simple_integer(10g)
REAL has a
BOOLEAN
maximum
REAL
precision of
63 binary
digits, which
is roughly
equivalent
to 18
decimal
digits
from January 1,
from January from January 4712 BC to
from January 1, 4712
1, 4712 BC to 1, 4712 BC December 31,
DATE Valid date range BC to December 31,
December 31, to December 9999 AD.
9999 AD.
9999 AD. 31, 9999 AD. (in Oracle7 =
4712 AD)

You might also like