Oracle large object processing

Source: Internet
Author: User
Welcome to the Oracle community forum and interact with 2 million technical staff. 1. Find the method selectcount (*) fromgame_articletwheredbms_lob.instr (t. content, utl_raw.cast_to_raw (convert (duowan.com, utf8), 1, 1) 0 or select

Welcome to the Oracle community forum, and interact with 2 million technical staff> go to 1. Find the method of select count (*) from game_article t where dbms_lob.instr (t. content, utl_raw.cast_to_raw (convert ('duowan. com ', 'utf8'), 1, 1) 0 or select

Welcome to the Oracle community forum and interact with 2 million technical staff> enter

1. Find the method in which the Clob field contains the specified record

Select count (*) from game_article t

Where dbms_lob.instr (t. content, utl_raw.cast_to_raw (convert ('duowan. com', 'utf8'), 1, 1)> 0

Or

Select count (*) from game_article t

Where dbms_lob.instr (t. content, 'duowan. com ', 1, 1)> 0

2. How can I determine whether the oracle large field (clob) is null?

Select * from a where x is null or dbms_lob.getlength (x) = 0

DBMS_LOB is a package dedicated to processing large objects.

DBMS_LOB.GETLENGTH is used to check the data type size of a large object.

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.