Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[Enmo College] the difference between empty and non-empty EMPTY_LOB and NULL

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

The difference between empty and non-empty EMPTY_LOB and NULL

Editor's notes:

EMPTY_LOB and NULL look alike in literal sense, but in fact, they are very different.

Not long ago, I wrote an article describing that if a table contains triggers, when importing data through IMP, the original EMPTY_LOB will be converted to NULL. A friend asked in the reply to the article, the difference between EMPTY_LOB and NULL, here is a brief description.

The execution of IMP by the LOB table containing triggers causes the EMPTY_LOB to become empty:

Http://yangtingkun.itpub.net/post/468/495024

To tell you the truth, there is actually a considerable difference between the two.

An unknown representation of one and an empty large object represented by the other. Note that empty large objects are not empty concepts:

Using IS NULL as a condition to judge, EMPTY_LOB can not be queried.

Using DBMS_LOB.GETLENGTH, you can also see the difference between the two:

Although EMPTY_LOB does not contain LOB content, the lob header information already exists, so it takes up a lot of space.

The biggest difference between the two is:

Although EMPTY_LOB does not have the content of LOB, it is ready to insert LOB content. After users get the header information of LOB, they can insert data directly.

For NULL, it is obvious that it cannot be modified directly.

Enmo College, a subsidiary of Yunhe Enmo (Beijing) Information Technology Co., Ltd., is committed to providing professional and high-level oracle database and big data training services, mining and training big data and database talents. Enmo College provides a full range of big data and database technology training, including individual practical skills training, personal certification training, and enterprise internal training. ACE-level super teachers, equipped with professional laboratories, immersion learning and training, professional laboratories, equipped with professional teaching assistants to guide training. Can quickly integrate into the circle of experts, rich in resources in the industry, and quickly accumulate workplace contacts. Oracle database courses include: Oracle DBA practical class, Oracle OCM examination, Oracle OCP examination and so on.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report