方法 && 实例
http://expert.csdn.net/Expert/topic/2435/2435782.xml?temp=.7490961

解决方案 »

  1.   

    象like '%csdn%'之类的查询不会使用该字段上一般的btree索引,可以使用oracle提供的全文检索功能,9i好像称为Text,8i里面叫Intermedia,就可以对这杨的字段建立context类型的索引:
    create index idx_jjj on sometable (somecol) indextype is ctxsys.context;
    然后用类似如下的语法就行查询:
    select count(*) from sometable where contains(somecol,'csdn')>0;
    具体可参考9i的Text Reference
      

  2.   

    使用CLOB字段类型:
    CLOB 字符数据 最大长度4G
      http://www.oradb.net/sql/sqlplus_005.htm
      

  3.   

    http://download-west.oracle.com/docs/cd/A87860_01/doc/index.htm