网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > 数据库 > Oracle教程
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
数据库:数据库教程,数据库技巧,Oracle教程,MySQL教程,Sybase教程,Access教程,DB2教程,数据库安全,数据库文摘
本月文章推荐
.研究生管理信息系统的开发流程一.
.说说Oracle数据库中的MTS.
.利用Oracle9i XML DB 来解决复杂.
..
.关于Oracle数据库各种存储形式的.
.大型数据库信息排错一法.
.Kill Session[Metalink].
.启动Oracle常见疑难问题分析.
.目前主流的两类关系型数据库系统.
.轻轻松松教Linux(上)--软体启动.
.ORACLE在HP-UX下的系列问题处理(.
.Oracle数据库联机日志文件丢失处.
.最新Redhat Linux9 quota磁盘空间.
.oracle 10G在fedora2上的安装.
.ORACLE SQL性能优化 (上)(1).
.Oracle FAQ 2003.02精华.
.Oracle SQL性能优化系列讲座之一.
.数据库设计中的反规范技术探讨.
.UNIX和WINDOWS2000上的ORACLE的差.
.[Oracle]手工转移数据库Step By .

Oracle:如何对CLOB行字段执行全文检索

发表日期:2008-2-9


    大家知道,超过4000字的文本一般存储在CLOB中(MSQL、Sysbase是存放在Text中),在目前的Oracle版本(Oracle8i)中,对大字段CLOB仍然不支持在where子句直接的like操作,如何实现对存储在CLOB字段中的内容进行like查找呢?下面的文章或则能给你帮助。 虽然在SQL*PLUS中能实现用select直接看到CLOB的内容,但是如何通过DBMS_LOB包实现对中文环境下的CLOB内容的读取我一直没有找到好的方法(使用Documents中提到的Samples只适用英文字符集),这极大的限制了使用第3方软件开发工作的自由度。假如那位仁兄有高招希望Email给我。     表结构: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;     下面列出了DBMS_LOB包中的过程函数:     APPEND procedure Appends the contents of the source LOB to the destination LOB.     CLOSE procedure Closes a previously opened internal or external LOB.     COMPARE function Compares two entire LOBs or parts of two LOBs.     COPY procedure Copies all, or part, of the source LOB to the destination LOB.     CREATETEMPORARY procedure Creates a temporary BLOB or CLOB and its corresponding index in the user′s default temporary tablespace.     ERASE procedure Erases all or part of a LOB.     FILECLOSE procedure Closes the file.     FILECLOSEALL procedure Closes all previously opened files.     FILEEXISTS function Checks if the file exists on the server.     FILEGETNAME procedure Gets the Directory alias and file name.     FILEISOPEN function Checks if the file was opened using the input BFILE locators.     FILEOPEN procedure Opens a file.     FREETEMPORARY procedure Frees the temporary BLOB or CLOB in the user′s default temporary tablespace.     GETCHUNKSIZE function Returns the amount of space used in the LOB chunk to store the LOB value.
    GETLENGTH function Gets the length of the LOB value.     INSTR function Returns the matching position of the nth occurrence of the pattern in the LOB.     ISOPEN function Checks to see if the LOB was already opened using the input locator.     ISTEMPORARY function Checks if the locator is pointing to a temporary LOB.     LOADFROMFILE procedure Loads BFILE data into an internal LOB.     OPEN procedure Opens a LOB (internal, external, or temporary) in the indicated mode.     READ procedure Reads data from the LOB starting at the specified offset.     SUBSTR function Returns part of the LOB value starting at the specified offset.     TRIM procedure Trims the LOB value to the specified shorter length.     WRITE procedure Writes data to the LOB from a specified offset.     WRITEAPPEND procedure Writes a buffer to the end of a LOB.
上一篇:Oracle 10g第2版新特性之可管理性特性 人气:779
下一篇:在Oracle数据库上构建.NET应用程序 人气:734
浏览全部Oracle教程的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐