我的数据包括字符和二进制数据, 所以我就就用BLOB来存储,
但是我要用类似instr函数来查找某个关键字符串请问有没有更好的解决方法?

解决方案 »

  1.   

    create table products( 
    productid number(10) not null ,
    name varchar2(255) ,
    description CLOB) ;
    方法:
    SELECT productid, name FROM products 
    WHERE dbms_lob.instr(products.description,'some text',1,1) > 0; http://www.chinaunix.net/bbsjh/8/2732.html
      

  2.   

    yu_shi_bin
    你写的是clob的全文检索方式
    对于blob是不行的。