Oracle SQL CMD 行

发布于 2024-08-30 05:22:28 字数 217 浏览 4 评论 0原文

每当我在命令行工具中执行 select 语句时,它都不会使用所有空间。

我修改了缓冲区大小和窗口大小,但它不起作用。

这是屏幕截图: 替代文字

Whenever I perform select statements in the command line tool it doesn't use all of the space.

I've modified buffer size and window size and it just doesn't work.

Here is the screenshot: alt text

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

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

发布评论

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

评论(4

岁月如刀 2024-09-06 05:22:28

在 sqlplus 中,执行以下命令:

SET LINESIZE 1500 

In sqlplus, execute this:

SET LINESIZE 1500 
べ映画 2024-09-06 05:22:28

sqlplus 不会自动调整其输出宽度以适合您的终端窗口宽度。您需要使用 set linesize 120 之类的内容更改宽度,

您可能需要仔细阅读 SQL*Plus 文档。

sqlplus does not automatically adjust its output width to fit your terminal window width. You need to change the width with something like set linesize 120

You might want to peruse the SQL*Plus documentation for more information on controlling output format.

忘年祭陌 2024-09-06 05:22:28

取自 Oracle 论坛

如果您想使其永久化,请在您的 DB/Oracle 客户端目录在 $ORACLE_HOME/sqlplus/admin 中查找文件 glogin.sql 并添加此行:

SET LINESIZE 9999;

现在,每当您登录 SQL Plus 时都会设置它。

Taken from the Oracle Forums:

If you want to make this permanent, in your DB/Oracle client directory look for the file glogin.sql in $ORACLE_HOME/sqlplus/admin and add this line:

SET LINESIZE 9999;

Now it will be set whenever you login into SQL Plus.

谈场末日恋爱 2024-09-06 05:22:28

单独设置 Windows 控制台属性是没有帮助的。
您需要告诉 Oracle 的 sqlplus 引擎以您喜欢的方式输出。这是通过 Set 选项完成的

示例:

SET LIN 300

每行将使用 300 列

Setting your windows console properties alone won't help.
You need to tell oracle's sqlplus engine to put output in your perferred manner. This is done by Set options

example:

SET LIN 300

Will use 300 columns per line

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