关于大尺寸文本数据的存储和检索?

Xworm 2003-11-06 10:46:24

在ORACLE中如何存储大于64K的文本数据,同时要用到 like 方式进行检索?

如:

select * from table001 where field001 like '%csdn%' and field002=0
...全文
43 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
chanet 2003-11-07
  • 打赏
  • 举报
回复
方法 && 实例
http://expert.csdn.net/Expert/topic/2435/2435782.xml?temp=.7490961
LGQDUCKY 2003-11-07
  • 打赏
  • 举报
回复
使用CLOB字段类型:
CLOB 字符数据 最大长度4G
http://www.oradb.net/sql/sqlplus_005.htm
mosaic 2003-11-07
  • 打赏
  • 举报
回复
象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



beckhambobo 2003-11-07
  • 打赏
  • 举报
回复
http://download-west.oracle.com/docs/cd/A87860_01/doc/index.htm

17,082

社区成员

发帖
与我相关
我的任务
社区描述
Oracle开发相关技术讨论
社区管理员
  • 开发
  • Lucifer三思而后行
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧