Issue: Oracle long type L; results: A summary of long types in Oracle

Source: Internet
Author: User
Summary of long types in Oracle

1, a Long data type is stored in a variable length string, the maximum length limit is 2GB.

2, for the text beyond a certain length, the basic can only be stored with a long type, the definition of many objects in the data dictionary is to be stored with a long.
1, a Long data type is stored in a variable length string, the maximum length limit is 2GB.

2, for the text beyond a certain length, the basic can only be stored with a long type, the definition of many objects in the data dictionary is to be stored with a long.

3, long type is mainly used to do not need to be a string search for a longer string of data, if you want to do character search will use VARCHAR2 type.

4. Many tools, including Sql*plus, are difficult to handle long data types.

5, LONG data type in use, to be limited to the size of the disk.

The ability to manipulate a LONG SQL statement:
1. SELECT statement

2. Set statement in UPDATE statement

3. The values statement in the INSERT statement

Limit:

1. A table can contain only one column of type LONG.

2. You cannot index a long type column.

3. A table containing a long column cannot be clustered.

4. You cannot insert the value of a long column into another table in Sql*plus, such as insert INTO ... select.

5. You cannot create a long type column in Sql*plus by querying other tables, such as CREATE table as SELECT.

6. A long column cannot be constrained (NULL, NOT NULL, except for default), such as: The key column (PRIMARY key) cannot be a long data type.

7. The Long type column cannot be used in the following clause of select: Where, group BY, order BY, and select statements with distinct.

8. A long column cannot be used for distribution queries.

Issue: Oracle long type L; results: A summary of long types in Oracle

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.