C# - 如何获得神谕LONG RAW类型值 [英] C# - How to get oracle long raw type value
问题描述
如何获得LONG RAW类型值与C#?
既然你还没有发布任何代码,我不知道你知道多少。我会假设你已经知道如何执行一个查询并取回使用OracleDataReader的结果集。
有一个疑难杂症与LONG和LONG RAW列。 您必须设置你的的OracleCommand
来非零值。 <在 InitialLONGFetchSize
属性/ p>
InitialLONGFetchSize
的默认值是零,这意味着没有数据将长期或LONG RAW列进行检索。如果你把它设置为-1,所有数据将被检索。你可能不想为大的值做到这一点。如果你把它设置为任何大于零,这是多少字节将如何intially取和缓存。
您应该阅读的为 InitialLONGFetchSize
>,因为有一些其他的细节你需要知道的。
How to get long raw type value with C#?
Since you haven't posted any code, I don't know how much you know. I'm going to assume you already understand how to execute a query and get back a result set using OracleDataReader.
There is one gotcha with LONG and LONG RAW columns. You must set the InitialLONGFetchSize
property of your OracleCommand
to a non-zero value.
The default value of InitialLONGFetchSize
is zero, which means no data will be retrieved for LONG or LONG RAW columns. If you set it to -1, all data will be retrieved . You might not want to do this for large values. If you set it to anything above zero, that's how many bytes will be intially fetched and cached.
You should read the documentation for InitialLONGFetchSize
, because there are some other details you need to know.
这篇关于C# - 如何获得神谕LONG RAW类型值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!