分类: Oracle
2012-04-09 17:54:55
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是查大对象数据类型的大小