Cheat Sheet Data Type Oracle
Cheat Sheet Data Type Oracle
www.databasestar.com
Numeric Character
Numeric data, with a precision of p and scale of s. Precision p CHAR (s) Fixed-length character with a length of s.
NUMBER (p, s)
ranges from 1 to 38, and scale ranges from -84 to 127 Up to 2,000 bytes.
Range: -10^38 +1 through 10^38 - 1
NCHAR (s) Fixed length national character with a length of s.
BINARY_FLOAT Up to 2,000 bytes.
32-bit, single-precision floating-point number
Range: from 1.17549E-38F to 3.40282E+38F
VARCHAR Not implemented in Oracle.
INT Synonym for NUMBER(38) LONG RAW Raw binary data of variable length. Deprecated.
Up to 2 GB
SMALLINT Synonym for NUMBER(38)
CHARACTER Synonym for VARCHAR2
VARYING
DOUBLE PRECISION Synonym for FLOAT(126)
CHARACTER Synonym for CHAR
Date
CLOB Stores large single-byte and multi-byte objects.
Up to 8 TB to 128 TB (4 GB -1 * (database block size))
DATE Stores date and time values.
From Jan 1, 4712 BC to Dec 31 9999 AD NCLOB Stores Unicode data.
Up to 8 TB to 128 TB (4 GB -1 * (database block size))
TIMESTAMP [(p)] A date value that stores time and fractional seconds.
From Jan 1, 4712 BC to Dec 31 9999 AD. Fractional seconds (p) JSON Data type to store JSON data. New in Oracle 21c
must be 0 to 9