使用CFQuery检索长文本(CLOB) [英] Retrieving long text (CLOB) using CFQuery

查看:119
本文介绍了使用CFQuery检索长文本(CLOB)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 CFQuery 从Oracle DB中检索CLOB字段。如果提交的CLOB数据小于8000,那么我可以看到< CFQuery> 检索到了值(< cfdump> o / p),但是如果CLOB字段大小中的值大于8000个字符,则它不会检索该值。在< cfdump> 中,尽管该值存在于Oracle DB中,我仍可以看到查询检索为空字符串。



<我正在CFadim控制台中使用Oracle驱动程序,启用了启用长文本检索(CLOB)和启用二进制大对象检索(BLOB)。 '



将'长文本缓冲区(chr)'和'Blob缓冲区(字节)'的值设置为6400000



是否有检索全文的建议?

解决方案

您是否在数据源配置中启用了CLOB字段?
如果不确定要这么做。


  1. 转到Coldfusion管理员

  2. 选择数据源

  3. 编辑数据源

  4. 单击高级设置

  5. 选中启用Clob

  6. 保存数据源

为此,您无需重新启动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.

  1. Go to the coldfusion administrator
  2. select datasources
  3. edit your datasource
  4. click on advanced settings
  5. check the "enable clob"
  6. save datasource

You shouldn't need to restart CF for this.

这篇关于使用CFQuery检索长文本(CLOB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆