SQL*Plus 是否有等效的 less ?
Sometimes a query on SQL*Plus might yield too many rows t fit on the screen.
Is there some equivalent of "piping to less/more" mechanism that I can do to navigate the results?
select * from emp | less
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
设置暂停
请参阅http://www.developer.com/java/data/article.php/3369501/SQLPlus-Tips-for-Oracle-Beginners.htmSET PAUSE ON
see http://www.developer.com/java/data/article.php/3369501/SQLPlus-Tips-for-Oracle-Beginners.htmSQL*Plus 是否不允许您从 shell 运行其命令?我已经有一段时间没有使用它了,但我认为它确实有用。
我知道对于 DB2,您可以这样做:
在命令行并让 shell 处理分页。
如果没有,我只需创建一个
sql++
脚本,例如:并使用它:
这样您就可以获得
less
分页的全部功能,能够上下滚动,搜索等。Does SQL*Plus not allow you to run its commands from the shell? It's been a while since I used it but I though it did.
I know with DB2 you can just do:
at the command line and let the shell handle the paging.
If not, I'd just create an
sql++
script like:and use it:
That way you get the full power of
less
paging, being able to scroll up and down, search and so on.