Home >Database >Mysql Tutorial >Oracle大对象处理

Oracle大对象处理

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 15:12:461258browse

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入 1、查找Clob字段中包含指定记录的方法 select count(*) from game_article t where dbms_lob.instr(t.content, utl_raw.cast_to_raw(convert('duowan.com','utf8')), 1, 1) 0 或者 select

欢迎进入Oracle社区论坛,与200万技术人员互动交流 >>进入

    1、查找Clob字段中包含指定记录的方法

    select count(*) from game_article t

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

    或者

    select count(*) from game_article t

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

    2、如何判断oracle大字段(clob)为空?

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

    DBMS_LOB为专门处理大对象的一个包

    DBMS_LOB.GETLENGTH是查大对象数据类型的大小

Oracle大对象处理

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn