Oracle Data Types and storage methods (5)

Source: Internet
Author: User

Part 5 LONG type
LONG is a type of data that has been discarded, and the LOB type is its alternative. So we will discuss it after LOB.
We only need a simple understanding. Why does ORACLE retain this type, just for backward compatibility? In the new database design, do not use LONG columns.
There are two types of LONG:
LONG: 2 GB characters can be stored
Long raw: can store up to 2 GB of binary data.
We only need to understand the restrictions of the LONG type.
LONG/long raw type CLOB/BLOB type
A table can only have one LONG/long raw column. A table can have up to 1000 LOB columns.
It cannot be used for user-defined types. It can be used for user-defined types.
The LONG type cannot be referenced in the WHERE clause.
Except for not null, integrity constraints cannot be referenced
Distributed transactions are not supported.
You cannot use basic or advanced replication technology.
It cannot be used in group by, order by, connect by, DISTINCT, UNIQUE, INTERSECT, MINUS, or UNION to convert a scalar SQL type.
PL/SQL functions and procedures cannot be used as parameters
Cannot be applied to built-in functions, such as SUBSTR
The create table as select statement cannot use the LONG type.
Table spaces cannot be moved in tables of the LONG type.
In a word, the new system should no longer use the LONG type.
If some fields in some tables in the old system are of the LONG type, pay attention to its limitations.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.