Oracle SQL CMD 行
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 sqlplus 中,执行以下命令:
In sqlplus, execute this:
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.
取自 Oracle 论坛:
如果您想使其永久化,请在您的 DB/Oracle 客户端目录在 $ORACLE_HOME/sqlplus/admin 中查找文件 glogin.sql 并添加此行:
现在,每当您登录 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:
Now it will be set whenever you login into SQL Plus.
单独设置 Windows 控制台属性是没有帮助的。
您需要告诉 Oracle 的 sqlplus 引擎以您喜欢的方式输出。这是通过
Set
选项完成的示例:
每行将使用 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
optionsexample:
Will use 300 columns per line