oracle - 不要传输 blob

发布于 2024-09-04 01:37:48 字数 233 浏览 3 评论 0原文

我注意到,在“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

聊慰 2024-09-11 01:37:48

不,SQL Developer 大概是通过检查表定义来构建和运行动态 select 语句,并且对于 BLOB 列,它只是简单地替换文字“(BLOB)”,如下所示:

v_sql := 'SELECT col1, col2, col3, ''(BLOB)'' as blob_col FROM mytable';

您的 .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:

v_sql := 'SELECT col1, col2, col3, ''(BLOB)'' as blob_col FROM mytable';

Your .net program would have to do something similar to avoid receiving the BLOB data.

×纯※雪 2024-09-11 01:37:48

一种方法是为这些 blob 创建一个单独的子表,并根据需要使用带有/不带有连接 blob 的视图。

One way would be to create a seperate child table for these blobs and use views with/without joined blobs as appropriate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文