Oracle Data Types

  • May 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Oracle Data Types as PDF for free.

More details

  • Words: 468
  • Pages: 2
CS 649 Database Management Systems

Oracle Data Types CHAR (size [BYTE | CHAR])

Fixed-length character Fixed for every row in the table (with trailing data of length size blanks); maximum size is 2000 bytes per row, bytes or characters. default size is 1 byte per row. Consider the character set (single-byte or multibyte) before setting size.

VARCHAR2 (size [BYTE | CHAR])

Variable-length character data, with maximum length size bytes or characters.

NCHAR (size)

Fixed-length Unicode Fixed for every row in the table (with trailing character data of blanks). Column size is the number of characters. length size characters. (The number of bytes is 2 times this number for the AL16UTF16 encoding and 3 times this number for the UTF8 encoding.) The upper limit is 2000 bytes per row. Default is 1 character.

NVARCHAR2 (size)

Variable-length Unicode character data of length size characters. A maximum size must be specified.

Variable for each row. Column size is the number of characters. (The number of bytes may be up to 2 times this number for a the AL16UTF16 encoding and 3 times this number for the UTF8 encoding.) The upper limit is 4000 bytes per row. Default is 1 character.

CLOB

Single-byte character data

Up to 232 - 1 bytes, or 4 gigabytes.

NCLOB

Unicode national character set (NCHAR) data.

Up to 232 - 1 bytes, or 4 gigabytes.

LONG

Variable-length character data.

Variable for each row in the table, up to 232 - 1 bytes, or 2 gigabytes, per row. Provided for backward compatibility.

NUMBER (p, s)

Variable-length Variable for each row. The maximum space numeric data. required for a given column is 21 bytes per row. Maximum precision p and/or scale s is 38.

DATE

Fixed-length date and time data, ranging from Jan. 1, 4712 B.C.E. to Dec. 31, 4712 C.E.

Variable for each row, up to 4000 bytes per row. Consider the character set (single-byte or multibyte) before setting size. A maximum size must be specified.

Fixed at 7 bytes for each row in the table. Default format is a string (such as DD-MON-RR) specified by the NLS_DATE_FORMAT parameter.

Page 1

CS 649 Database Management Systems

BLOB

Unstructured binary data

Up to 232 - 1 bytes, or 4 gigabytes.

BFILE

Binary data stored in an external file

Up to 232 - 1 bytes, or 4 gigabytes.

RAW (size)

Variable-length raw binary Variable for each row in the table, up to 2000 data bytes per row. A maximum size must be specified. Provided for backward compatibility.

LONG RAW Variable-length raw binary Variable for each row in the table, up to 231 - 1

ROWID

data

bytes, or 2 gigabytes, per row. Provided for backward compatibility.

Binary data representing row addresses

Fixed at 10 bytes (extended ROWID) or 6 bytes (restricted ROWID) for each row in the table.

Page 2

Related Documents

Oracle Data Types
May 2020 5
Data Types
November 2019 18
11 Advanced Data Types
November 2019 12
03 Data Types
June 2020 4
Data Colection Types
April 2020 6
Sql Data Types
November 2019 8