oracle - 不要传输 blob
我注意到,在“SQL Developer”中,如果您从包含 BLOB 的表中进行选择,它会使用单词“(BLOB)”,而不是显示/下载 BLOB 内容。
这是可以在会话级别完成的事情吗?
我有一个 .net 程序,它执行“select * from TABLE_WITH_BLOB”操作,返回 BLOB 的内容。我无法更改选择所有列的程序,因此最好的办法是告诉 .net 或会话不要传输 BLOB。有人知道这样做的方法吗?
I've noticed that in "SQL Developer" if you are selecting from a table that contains BLOBs, it uses the word "(BLOB)" instead of displaying / downloading the BLOB contents.
Is this something that can be done at a session level?
I have a .net program that does "select * from TABLE_WITH_BLOB" which returns the contents of the BLOB. I cannot change the program from selecting all columns, so the next best thing is to tell .net or the session to not transfer BLOBs. Anyone know a way of doing this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不,SQL Developer 大概是通过检查表定义来构建和运行动态 select 语句,并且对于 BLOB 列,它只是简单地替换文字“(BLOB)”,如下所示:
您的 .net 程序必须执行类似的操作以避免接收BLOB 数据。
No, SQL Developer is presumably building and running a dynamic select statement by inspecting the table definition, and for BLOB columns it simply substitutes the literal '(BLOB)' something like this:
Your .net program would have to do something similar to avoid receiving the BLOB data.
一种方法是为这些 blob 创建一个单独的子表,并根据需要使用带有/不带有连接 blob 的视图。
One way would be to create a seperate child table for these blobs and use views with/without joined blobs as appropriate.