复制到 Excel 时 sqltextinfo 被截断

发布于 2025-01-09 06:28:30 字数 238 浏览 5 评论 0原文

我需要从日志表中获取“sqltextinfo”列,但当我将其复制到 Excel 时,文本未正确放置在单元格中。

我尝试了以下查询来得到这个。但它抛出错误 -9134 结果超出最大长度

oreplace(oreplace(otranslate(sqltextinfo),', ',''),chr(10),chr(13),'') sqltextinfo

有什么方法可以使用上面的查询不使用 substr

请帮忙

I need to get a column 'sqltextinfo' from log table but the text is not correctly placed in a cell when I copy it to excel.

I tried the following query to get this. But it throws error -9134 result exceeded maximum length

oreplace(oreplace(otranslate(sqltextinfo),', ',''),chr(10),chr(13),'') sqltextinfo

is there any way to use the above query without using substr

Please help

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

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

发布评论

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

评论(1

心碎无痕… 2025-01-16 06:28:30

我用它来用单个 ' ' 替换任何空格:

Cast( RegExp_Replace(Cast(SqlTextInfo AS CLOB(31000)), '\s+', ' ',1,0,'c') AS VARCHAR(31000))

I use this to replace any whitespace with a single ' ':

Cast( RegExp_Replace(Cast(SqlTextInfo AS CLOB(31000)), '\s+', ' ',1,0,'c') AS VARCHAR(31000))
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文