如何告诉 SQLexec 不要换行?

发布于 2024-08-12 01:33:58 字数 183 浏览 5 评论 0原文

我使用的是 Oracle 11g。还可以使用 spool 命令将查询的输出获取到文件中。问题是 sqlexec 正在包装字符并使我的生活变得悲惨。现在在正常情况下这可能没问题,但是假脱机文件平均有 100,000 行甚至更多,因为 sqlexec 不断给我换行符....这是我不想要的。有没有办法告诉 sqlexec 和/或 spool 命令没有换行?

I'm using Oracle 11g. Also using the spool command to get the output of a query to a file. The problem is that sqlexec is wrapping the characters and making my life miserable. Now under normal circumstances this might be fine however the spool file is on average a 100,000 lines and more so because sqlexec keeps giving me line breaks .... which I don't want. Is there a way to tell sqlexec and/or the spool command to have no line wraps?

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

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

发布评论

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

评论(1

妄想挽回 2024-08-19 01:33:58

我已经为遇到此问题的任何人找到了答案...在假脱机文件中或在 sqlplus 的命令提示符下键入此内容,

set linesize 256;

其中 256 是您希望其显示的字符数。就我而言,我正在处理 256 个 varchar。

I've found the answer for anyone coming upon this ... Within the spool file or at the command prompt for sqlplus type this

set linesize 256;

where 256 is the number of characters you want it to display. In my case I'm dealing with 256 varchar's.

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