如何在不退出终端的情况下退出 PostgreSQL 中的 select?
How to get out of a select in PostgreSQL without exiting to the terminal?
正如您在图片中看到的,我列出了数据库中的所有表...
我可以上下移动,但我怎样才能回到 postgres 提示符?如果我使用 CONTROL+X,它会将我带回 linux 提示符,但不在 postgres.
感谢大家对非程序员的耐心等待!
它是 less
寻呼机,只需键入 q。
https://www.postgresql.org/docs/current/static/app-psql.html
If the environment variable PAGER is set, the output is piped to the
specified program. Otherwise a platform-dependent default (such as
more) is used
所以如果您在 linux 并且没有明确地将 PAGER
更改为 q
http://man7.org/linux/man-pages/man1/more.1.html
Press space to continue, 'q' to quit.
正如您在图片中看到的,我列出了数据库中的所有表...
我可以上下移动,但我怎样才能回到 postgres 提示符?如果我使用 CONTROL+X,它会将我带回 linux 提示符,但不在 postgres.
感谢大家对非程序员的耐心等待!
它是 less
寻呼机,只需键入 q。
https://www.postgresql.org/docs/current/static/app-psql.html
If the environment variable PAGER is set, the output is piped to the specified program. Otherwise a platform-dependent default (such as more) is used
所以如果您在 linux 并且没有明确地将 PAGER
更改为 q
http://man7.org/linux/man-pages/man1/more.1.html
Press space to continue, 'q' to quit.