使用CFQuery撤销长文本(CLOB) [英] retreving long text (CLOB) using CFQuery
问题描述
我使用 CFQuery
从Oracle DB检索CLOB字段。如果CLOB字段包含小于〜8000的数据,那么我可以看到检索的值(o / p),但是如果CLOB字段大小的值大于8000字符,那么它不检索该值。在< cfdump>
我可以看到查询检索为空字符串虽然值存在于Oracle DB。
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 retrieved the value ( 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.
我在CFadim控制台中使用Oracle驱动程序
启用'启用长文本检索(CLOB)'和'启用二进制大对象检索(BLOB)。 '
将'Long Text Buffer(chr)'和'Blob Buffer(bytes)'值设置为6400000
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?
推荐答案
您是否在数据源配置中启用了CLOB字段?
Did you enable CLOB fields in the datasource configuration? If not make sure you do.
- 前往coldfusion管理员
- 数据源
- 编辑您的数据源
- 点击高级设置
- >
- 保存数据源
- Go to the coldfusion administrator
- select datasources
- edit your datasource
- click on advanced settings
- check the "enable clob"
- save datasource
您不应该为此重新启动CF。
You shouldn't need to restart CF for this.
这篇关于使用CFQuery撤销长文本(CLOB)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!