a亚洲精品_精品国产91乱码一区二区三区_亚洲精品在线免费观看视频_欧美日韩亚洲国产综合_久久久久久久久久久成人_在线区

首頁 > 數(shù)據(jù)庫 > Oracle > 正文

Oracle如何對CLOB行字段來執(zhí)行全文檢索

2024-08-29 13:51:37
字體:
供稿:網(wǎng)友
本文講解Oracle如何對CLOB行字段來執(zhí)行全文檢索。 大家知道,超過4000字的文本一般存儲在CLOB中(MSQL、Sysbase是存放在Text中),在Oracle8i版本,對大字段CLOB仍然不支持在where子句直接的Like操作,如何實現(xiàn)對存儲在CLOB字段中的內(nèi)容進行Like查找呢? 下面的文章或則能給你幫助。雖然在SQL*PLUS中能實現(xiàn)用Select直接看到CLOB的內(nèi)容,但是如何通過DBMS_LOB包實現(xiàn)對中文環(huán)境下的CLOB內(nèi)容的讀取我一直沒有找到好的方法(使用Documents中提到的Samples只適用英文字符集),這極大的限制了使用第3方軟件開發(fā)工作的自由度。 表結(jié)構(gòu):
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包中的過程函數(shù):
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的LogMiner分析工具

下一篇:Oracle 9i充分利用自動撤銷管理的優(yōu)點

發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
學(xué)習(xí)交流
熱門圖片

新聞熱點

疑難解答

圖片精選

網(wǎng)友關(guān)注

主站蜘蛛池模板: 色偷偷噜噜噜亚洲男人的天堂 | 日韩在线一区二区三区 | 久久久久久久成人 | 成人在线 | 男女羞羞视频免费在线观看 | 欧美成人视屏 | 亚洲精品在线免费 | 中文字幕一区二区三区不卡 | www欧美日韩| 波多野结衣av中文字幕 | 亚洲精品乱码久久久久久 | 欧美精品一区二区三区蜜臀 | 欧美一级毛片免费观看 | 91免费小视频 | 久久亚洲一区 | 久久99这里只有精品 | 国产成人精品a | 欧美精品第十页 | 人人插人人干 | 欧美日韩一区二区三区在线观看 | 9999在线视频 | 成人小视频在线观看 | 在线一区 | 成人免费黄色片 | 99综合| 精品久久久久久亚洲综合网站 | 久久av资源网 | 午夜视频黄| 亚洲tv久久爽久久爽 | 日韩精品一区二 | 欧美激情一区二区 | 免费超碰 | 网站一区二区三区 | 久久精品福利 | 国产精品视频一区二区三区 | 中文字幕亚洲欧美精品一区四区 | 欧美精品久久久久久久久老牛影院 | 久久国产精品一区 | 欧美一区二区三区四区视频 | 综合久久国产九一剧情麻豆 | 久久美女视频 |