Teradata:如何显示lob内联(在单元格内)

发布于 2025-01-24 16:27:10 字数 225 浏览 6 评论 0原文

我有一个Teradata表,该表包含不同列中的LOB对象。

当我进行查询时,它会弹出窗口,询问将LOB对象作为TXT文件保存在我的磁盘上。

lob信息

是否可以在内联(内部内部)显示这些LOB对象的内容?

I have a Teradata table which contains LOB objects in different columns.

When I do a query, it pops up window to ask where to save the LOB objects as txt files onto my disk.

LOB Information (due to my SOF level, I cannot display the screenshot)

My question is, is it possible to display the content of these LOB objects inline(inside the cells)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

初熏 2025-01-31 16:27:10

我找到了解决方案:

更改的配置
(由于我的SOF级别,我无法直接在帖子中显示图像)

将“句柄/clob大小”更改为较小的值,部分解决了我的问题。

之所以部分原因是因为LOB信息弹出了。

I found the solution:

Changed Configuration
(Due to my SOF level, I cannot show image directly in my post)

Changing the "Handle the BLOB/CLOB size" to smaller values solved my problem partially.

The reason why it's partially is because the LOB Information pop-up still there.

岁月无声 2025-01-31 16:27:10

如果您只想在Teradata SQL Assistant中查看此内容(它不能显示任意宽的列):

如果Clob列中的字符串足够短,请将它们施放到您的查询中:

select id, cast(clarge as varchar(1000)) as WhatIsInCLob
from ...

如果值超过VARCHAR限制(取决于varchar限制)在clob的字符集和会话字符设置的字符集上,但很容易获得数千个字符),然后使用子字符串限制输出:

select id, cast(substring(clarge,1,4000) as varchar(4000)) as WhatIsInCLob
from ...

这里有更多特定的限制信息: https://docs.teradata.com/r/r/r/teradata-sql------------助理 - 韦多斯 - 用户指导/2018年10月/启动/限制

If you want this for viewing in Teradata SQL Assistant only (it can't display arbitrarily wide columns):

If the strings in the CLOB columns are short enough, cast them to varchar in your query:

select id, cast(clarge as varchar(1000)) as WhatIsInCLob
from ...

If the values can exceed varchar limits (depends on the character set of the CLOB, and session character settings, but easily thousands of chars), then use SUBSTRING to limit the output:

select id, cast(substring(clarge,1,4000) as varchar(4000)) as WhatIsInCLob
from ...

There is more specific limit information here: https://docs.teradata.com/r/Teradata-SQL-Assistant-for-Windows-User-Guide/October-2018/Getting-Started/Limitations

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