使用CFQuery检索长文本(CLOB) [英] Retrieving long text (CLOB) using CFQuery
问题描述
我正在使用 CFQuery
从Oracle DB中检索CLOB字段。如果提交的CLOB数据小于8000,那么我可以看到< CFQuery>
检索到了值(< cfdump>
o / p),但是如果CLOB字段大小中的值大于8000个字符,则它不会检索该值。在< cfdump>
中,尽管该值存在于Oracle DB中,我仍可以看到查询检索为空字符串。
<我正在CFadim控制台中使用Oracle驱动程序,启用了启用长文本检索(CLOB)和启用二进制大对象检索(BLOB)。 '
将'长文本缓冲区(chr)'和'Blob缓冲区(字节)'的值设置为6400000
是否有检索全文的建议?
您是否在数据源配置中启用了CLOB字段?
如果不确定要这么做。
- 转到Coldfusion管理员
- 选择数据源
- 编辑数据源
- 单击高级设置
- 选中启用Clob
- 保存数据源
为此,您无需重新启动CF。
I am using CFQuery
to retrieve the CLOB field from Oracle DB. If the CLOB filed contains the Data less than ~ 8000, then I can see <CFQuery >
retrieved the value (<cfdump>
the o/p), however If the value in CLOB field size is more than 8000 chars, then its not retrieving the value. in <cfdump>
i can see the query retrieved as 'empty String' though the value exists in Oracle DB.
I am using the Oracle Driver in CFadim console, enabled 'Enable long text retrieval (CLOB).' and 'Enable binary large object retrieval (BLOB). '
Set 'Long Text Buffer (chr)' and 'Blob Buffer(bytes) ' values to 6400000
Any suggestions to retrieve the full text?
Did you enable CLOB fields in the datasource configuration? If not make sure you do.
- Go to the coldfusion administrator
- select datasources
- edit your datasource
- click on advanced settings
- check the "enable clob"
- save datasource
You shouldn't need to restart CF for this.
这篇关于使用CFQuery检索长文本(CLOB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!