淘先锋技术网

首页 1 2 3 4 5 6 7

数据库中clob的类型sql怎么查询?

1,在查询的列上建索引2,对于要查询的clob字段使用一下语句创建索引create index idx_nameon tablename(collums_name)indextype is ctxsys.context; 3.查询的时候对于clob字段使用如下方法,不要使用like select * from tablenamewhere contains(collums_name,'XXXXX')>0 order by id desc 还有一种方法可以使用dbms_lob.instr(collums_name,'XXXX')>0 但是没有上面的快